Skip to content

Commit 13bd8fe

Browse files
committed
Merge branch 'release/0.6.3'
2 parents 36abd7d + b04af85 commit 13bd8fe

File tree

80 files changed

+2383
-197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2383
-197
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
.bundle/
22
.bin
33

4+
# sqlite files
5+
*.sqlite3
6+
7+
# tmp files
8+
tmp/
9+
10+
# ignore Gemfile.lock and other lockfiles
11+
*.lock
12+
13+
# Dummy app ignored stuff
14+
spec/dummy/db/*.sqlite3
15+
spec/dummy/log/*.log
16+
spec/dummy/tmp/

.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--format progress

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: ruby
2+
rvm:
3+
- 1.9.3
4+
- 2.0.0
5+
# Load database schema before rake
6+
before_script: bundle exec rake db:schema:load

Gemfile

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,45 @@
1-
source "https://rubygems.org"
1+
source 'https://rubygems.org'
22

3+
# Declare your gem's dependencies in activeadmin-globalize.gemspec.
4+
# Bundler will treat runtime dependencies like base dependencies, and
5+
# development dependencies will be added by default to the :development group.
36
gemspec
47

5-
gem 'activeadmin', github: 'gregbell/active_admin', branch: 'master'
8+
# Declare any dependencies that are still in development here instead of in
9+
# your gemspec. These might include edge Rails or gems from your path or
10+
# Git. Remember to move these dependencies to your gemspec before releasing
11+
# your gem to rubygems.org.
612

13+
# To use debugger
14+
# gem 'debugger'
15+
16+
# Gems used by the dummy application
17+
group :assets do
18+
gem 'sass-rails', '~> 3.2.3'
19+
gem 'coffee-rails', '~> 3.2.1'
20+
21+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
22+
gem 'therubyracer', platforms: :ruby
23+
24+
gem 'uglifier', '>= 1.0.3'
25+
end
26+
27+
# jquery-rails is
28+
gem 'jquery-rails'
29+
30+
group :test do
31+
gem 'sqlite3', '~> 1.3.5'
32+
gem 'rspec-rails', '~> 2.14.0'
33+
gem 'factory_girl_rails', '~> 4.2.1'
34+
gem 'database_cleaner', '~> 1.0.1'
35+
gem 'guard-rspec', require: false
36+
gem 'spring', require: false
37+
gem 'spring-commands-rspec', require: false
38+
gem 'capybara', '~> 2.1.0'
39+
gem 'capybara-screenshot'
40+
gem 'poltergeist'
41+
gem 'fuubar'
42+
# Useful to debug tests
43+
gem 'awesome_print'
44+
gem 'pry'
45+
end

Gemfile.lock

Lines changed: 0 additions & 162 deletions
This file was deleted.

Guardfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# A sample Guardfile
2+
# More info at https://github.com/guard/guard#readme
3+
4+
guard :rspec, cmd: 'spring rspec -f Fuubar' do
5+
watch(%r{^spec/.+_spec\.rb$})
6+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7+
watch('spec/spec_helper.rb') { "spec" }
8+
9+
# Rails example
10+
watch(%r{^dummy/app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
11+
watch(%r{^dummy/app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
12+
watch(%r{^dummy/app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
13+
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
14+
15+
end
16+

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ Makes it easy to translate your resource fields.
44
## Installation
55

66
```ruby
7-
gem "activeadmin-globalize", github: 'stefanoverna/activeadmin-globalize',
8-
branch: 'master'
7+
gem 'activeadmin-globalize', '~> 0.6.3'
98
```
10-
We still need to use GitHub because ActiveAdmin is still in active development
11-
and there's no released gem compatible with Rails 4.
9+
10+
This version targets Rails 3.2.x only and ActiveAdmin ~> 0.6.3.
1211

1312
## Your model
1413

@@ -21,8 +20,10 @@ end
2120

2221
```ruby
2322
index do
24-
# ...
23+
# textual translation status
2524
translation_status
25+
# or with flag icons
26+
translation_status_flags
2627
# ...
2728
default_actions
2829
end
@@ -50,3 +51,7 @@ to symbol (in application.rb)
5051

5152
config.i18n.available_locales = [:en, :it, :de, :es, :"pt-BR"]
5253

54+
## Credits
55+
56+
This work is based on original idea by [@stefanoverna](https://github.com/stefanoverna/activeadmin-globalize),
57+
I needed it for AA 0.6.x so I forked the original project.

Rakefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env rake
2+
require 'bundler/gem_tasks'
3+
4+
begin
5+
require 'bundler/setup'
6+
rescue LoadError
7+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
8+
end
9+
10+
APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__)
11+
load 'rails/tasks/engine.rake'
12+
13+
Bundler::GemHelper.install_tasks
14+
15+
require 'rspec/core/rake_task'
16+
RSpec::Core::RakeTask.new(:spec)
17+
18+
task default: %w(app:test:prepare spec)

activeadmin-globalize.gemspec

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
1-
$:.push File.expand_path("../lib", __FILE__)
1+
$:.push File.expand_path('../lib', __FILE__)
22

33
# Maintain your gem's version:
4-
require "active_admin/globalize/version"
4+
require 'active_admin/globalize/version'
55

66
# Describe your gem and declare its dependencies:
77
Gem::Specification.new do |s|
8-
s.name = "activeadmin-globalize"
8+
s.name = 'activeadmin-globalize'
99
s.version = ActiveAdmin::Globalize::VERSION
10-
s.authors = ["Stefano Verna"]
11-
s.email = ["stefano.verna@gmail.com"]
12-
s.homepage = "http://github.com/stefanoverna/activeadmin-globalize"
13-
s.summary = "Handles globalize translations"
14-
s.description = "Handles globalize translations"
10+
s.authors = ['Stefano Verna', 'Fabio Napoleoni']
11+
s.email = ['stefano.verna@gmail.com', 'f.napoleoni@gmail.com']
12+
s.homepage = 'http://github.com/fabn/activeadmin-globalize'
13+
s.summary = 'Handles globalize translations'
14+
s.description = 'Handles globalize translations in ActiveAdmin 0.6.3 and Rails 3.2.x'
1515

16-
s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "README.md"]
16+
s.files = Dir['{app,config,db,lib}/**/*'] + %w(MIT-LICENSE README.md)
17+
18+
s.add_dependency 'activeadmin', '~> 0.6.3'
19+
s.add_dependency 'globalize', '~> 3.0.4'
20+
21+
# development dependencies
22+
s.add_development_dependency 'bundler', '>= 1.6.1'
23+
s.add_development_dependency 'rake'
24+
# Other development dependencies moved into Gemfile
1725

18-
s.add_dependency "activeadmin"
19-
s.add_dependency "globalize", '~> 3.0.4'
2026
end
2127

3.45 KB
Loading

0 commit comments

Comments
 (0)