Skip to content

Commit b35b3c7

Browse files
author
Matteo Giaccone
committed
Rename to ActiveAdmin::Globalize
1 parent 18443c4 commit b35b3c7

20 files changed

+62
-120
lines changed

.gitignore

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
coverage/
21
.bundle/
3-
log/*.log
4-
pkg/
5-
spec/dummy/db/*.sqlite3
6-
spec/dummy/log/*.log
7-
spec/dummy/tmp/
8-
spec/dummy/.sass-cache
9-
spec/dummy/public/uploads/*
2+
.bin
3+

Gemfile

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

3-
gem 'activeadmin', github: 'gregbell/active_admin'
43
gemspec
54

6-
group :development, :test do
7-
gem 'simplecov', require: false
8-
gem 'sqlite3'
9-
gem 'rspec-rails', '~> 2.8.1'
10-
gem 'webrat'
11-
gem 'friendly_id'
12-
end
5+
gem 'activeadmin', github: 'gregbell/active_admin', branch: 'master'
136

Gemfile.lock

Lines changed: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GIT
22
remote: git://github.com/gregbell/active_admin.git
3-
revision: 5ba39c0c85920ddfc5be9985a8c0c9310da1f878
3+
revision: f21cff30e7212706a39710e2c70ad0af8087ccea
4+
branch: master
45
specs:
56
activeadmin (1.0.0.pre)
67
arbre (~> 1.0)
@@ -11,19 +12,20 @@ GIT
1112
inherited_resources (~> 1.3)
1213
jquery-rails
1314
jquery-ui-rails
14-
kaminari (~> 0.14, != 0.15.0)
15+
kaminari (~> 0.15)
1516
rails (>= 3.2, < 4.1)
1617
ransack (~> 1.0)
1718
sass-rails
1819

1920
PATH
2021
remote: .
2122
specs:
22-
activeadmin-globalize3 (0.0.2)
23+
activeadmin-globalize (1.0.0)
24+
activeadmin
2325
globalize (~> 4.0.0)
2426

2527
GEM
26-
remote: http://rubygems.org/
28+
remote: https://rubygems.org/
2729
specs:
2830
actionmailer (4.0.2)
2931
actionpack (= 4.0.2)
@@ -71,14 +73,10 @@ GEM
7173
railties (>= 3.2.6, < 5)
7274
thread_safe (~> 0.1)
7375
warden (~> 1.2.3)
74-
diff-lcs (1.1.3)
75-
docile (1.1.2)
7676
erubis (2.7.0)
7777
execjs (2.0.2)
7878
formtastic (2.3.0.rc2)
7979
actionpack (>= 3.0)
80-
friendly_id (5.0.2)
81-
activerecord (~> 4.0.0)
8280
globalize (4.0.0)
8381
activemodel (>= 4.0.0, < 5)
8482
activerecord (>= 4.0.0, < 5)
@@ -95,18 +93,15 @@ GEM
9593
thor (>= 0.14, < 2.0)
9694
jquery-ui-rails (4.1.1)
9795
railties (>= 3.1.0)
98-
kaminari (0.14.1)
96+
kaminari (0.15.1)
9997
actionpack (>= 3.0.0)
10098
activesupport (>= 3.0.0)
10199
mail (2.5.4)
102100
mime-types (~> 1.16)
103101
treetop (~> 1.4.8)
104102
mime-types (1.25.1)
105-
mini_portile (0.5.2)
106103
minitest (4.7.5)
107104
multi_json (1.8.4)
108-
nokogiri (1.6.1)
109-
mini_portile (~> 0.5.0)
110105
orm_adapter (0.5.0)
111106
polyamorous (0.6.4)
112107
activerecord (>= 3.0)
@@ -134,29 +129,11 @@ GEM
134129
polyamorous (~> 0.6.0)
135130
responders (1.0.0)
136131
railties (>= 3.2, < 5)
137-
rspec (2.8.0)
138-
rspec-core (~> 2.8.0)
139-
rspec-expectations (~> 2.8.0)
140-
rspec-mocks (~> 2.8.0)
141-
rspec-core (2.8.0)
142-
rspec-expectations (2.8.0)
143-
diff-lcs (~> 1.1.2)
144-
rspec-mocks (2.8.0)
145-
rspec-rails (2.8.1)
146-
actionpack (>= 3.0)
147-
activesupport (>= 3.0)
148-
railties (>= 3.0)
149-
rspec (~> 2.8.0)
150132
sass (3.2.13)
151133
sass-rails (4.0.1)
152134
railties (>= 4.0.0, < 5.0)
153135
sass (>= 3.1.10)
154136
sprockets-rails (~> 2.0.0)
155-
simplecov (0.8.2)
156-
docile (~> 1.1.0)
157-
multi_json
158-
simplecov-html (~> 0.8.0)
159-
simplecov-html (0.8.0)
160137
sprockets (2.10.1)
161138
hike (~> 1.2)
162139
multi_json (~> 1.0)
@@ -166,7 +143,6 @@ GEM
166143
actionpack (>= 3.0)
167144
activesupport (>= 3.0)
168145
sprockets (~> 2.8)
169-
sqlite3 (1.3.8)
170146
thor (0.18.1)
171147
thread_safe (0.1.3)
172148
atomic
@@ -177,19 +153,10 @@ GEM
177153
tzinfo (0.3.38)
178154
warden (1.2.3)
179155
rack (>= 1.0)
180-
webrat (0.7.3)
181-
nokogiri (>= 1.2.0)
182-
rack (>= 1.0)
183-
rack-test (>= 0.5.3)
184156

185157
PLATFORMS
186158
ruby
187159

188160
DEPENDENCIES
189161
activeadmin!
190-
activeadmin-globalize3!
191-
friendly_id
192-
rspec-rails (~> 2.8.1)
193-
simplecov
194-
sqlite3
195-
webrat
162+
activeadmin-globalize!

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
# ActiveAdmin::Globalize3
1+
# ActiveAdmin::Globalize
22
Makes it easy to translate your resource fields.
33

44
## Installation
55

66
```ruby
7-
gem "activeadmin-globalize3"
7+
gem "activeadmin-globalize", github: 'cantierecreativo/activeadmin-globalize',
8+
branch: 'master'
89
```
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.
12+
913
## Your model
1014

1115
```ruby
@@ -36,12 +40,13 @@ If `switch_locale` is set, each tab will be rendered switching locale.
3640

3741
## Friendly ID
3842

39-
If you want to use Friendly ID together with Globalize3, please take a look
43+
If you want to use Friendly ID together with Globalize, please take a look
4044
at the `activeadmin-seo` gem.
4145

4246
## Hints
4347

44-
To use the dashed locale keys as 'pt-BR' or 'pt-PT' you need to convert a string to symbol (in application.rb)
48+
To use the dashed locale keys as 'pt-BR' or 'pt-PT' you need to convert a string
49+
to symbol (in application.rb)
4550

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

Rakefile

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

activeadmin-globalize3.gemspec renamed to activeadmin-globalize.gemspec

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

33
# Maintain your gem's version:
4-
require "active_admin/globalize3/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-globalize3"
9-
s.version = ActiveAdmin::Globalize3::VERSION
8+
s.name = "activeadmin-globalize"
9+
s.version = ActiveAdmin::Globalize::VERSION
1010
s.authors = ["Stefano Verna"]
1111
s.email = ["stefano.verna@gmail.com"]
12-
s.homepage = "http://github.com/cantierecreativo/activeadmin-globalize3"
13-
s.summary = "Handles globalize3 translations"
14-
s.description = "Handles globalize3 translations"
12+
s.homepage = "http://github.com/cantierecreativo/activeadmin-globalize"
13+
s.summary = "Handles globalize translations"
14+
s.description = "Handles globalize translations"
1515

16-
s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"]
16+
s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "README.md"]
1717

1818
s.add_dependency "activeadmin"
1919
s.add_dependency "globalize", '~> 4.0.0'

config/locales/en.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
en:
22
active_admin:
3-
globalize3:
3+
globalize:
44
translations: "Translations"
55
language:
66
it: "Italian"
@@ -9,3 +9,4 @@ en:
99
de: "German"
1010
pt-BR: "Portuguese"
1111
pt-PT: "Portuguese (Portugal)"
12+

config/locales/it.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
it:
22
active_admin:
3-
globalize3:
3+
globalize:
44
translations: "Traduzioni"
55
language:
66
it: "Italiano"
@@ -9,3 +9,4 @@ it:
99
de: "Tedesco"
1010
pt-BR: "Portoghese"
1111
pt-PT: "Portoghese (Portogallo)"
12+

0 commit comments

Comments
 (0)