gettext_i18n_rails 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/Appraisals ADDED
@@ -0,0 +1,5 @@
1
+ ['2.3', '3.0', '3.1', '3.2'].each do |version|
2
+ appraise "rails.#{version}" do
3
+ gem "rails", "~>#{version}.0"
4
+ end
5
+ end
data/Gemfile CHANGED
@@ -1,12 +1,14 @@
1
1
  source :rubygems
2
2
  gemspec
3
3
 
4
+ gem 'appraisal'
5
+ gem 'bump'
6
+ gem 'gettext'
4
7
  gem 'haml'
5
- gem 'slim'
6
8
  gem 'hamlet'
7
- gem 'ruby_parser'
8
- gem 'gettext', "2.3.1", :github => "ruby-gettext/gettext" # waiting for 2.3.1 to be released
9
- gem 'sqlite3', '~>1.3.6'
10
- gem 'rails', ENV['RAILS'] || '~>3'
9
+ gem 'rails'
11
10
  gem 'rake'
12
- gem 'rspec', '~>2'
11
+ gem 'ruby_parser', '~> 2.3' # 3 breaks haml/slim parsing
12
+ gem 'rspec'
13
+ gem 'slim'
14
+ gem 'sqlite3'
data/Gemfile.lock CHANGED
@@ -1,129 +1,130 @@
1
- GIT
2
- remote: git://github.com/ruby-gettext/gettext.git
3
- revision: 3c4822399d587831a479df7db2b1b28de0216093
4
- specs:
5
- gettext (2.3.1)
6
- locale
7
-
8
1
  PATH
9
2
  remote: .
10
3
  specs:
11
- gettext_i18n_rails (0.7.1)
4
+ gettext_i18n_rails (0.7.2)
12
5
  fast_gettext (>= 0.4.8)
13
6
 
14
7
  GEM
15
8
  remote: http://rubygems.org/
16
9
  specs:
17
- actionmailer (3.2.5)
18
- actionpack (= 3.2.5)
10
+ actionmailer (3.2.8)
11
+ actionpack (= 3.2.8)
19
12
  mail (~> 2.4.4)
20
- actionpack (3.2.5)
21
- activemodel (= 3.2.5)
22
- activesupport (= 3.2.5)
13
+ actionpack (3.2.8)
14
+ activemodel (= 3.2.8)
15
+ activesupport (= 3.2.8)
23
16
  builder (~> 3.0.0)
24
17
  erubis (~> 2.7.0)
25
- journey (~> 1.0.1)
18
+ journey (~> 1.0.4)
26
19
  rack (~> 1.4.0)
27
20
  rack-cache (~> 1.2)
28
21
  rack-test (~> 0.6.1)
29
22
  sprockets (~> 2.1.3)
30
- activemodel (3.2.5)
31
- activesupport (= 3.2.5)
23
+ activemodel (3.2.8)
24
+ activesupport (= 3.2.8)
32
25
  builder (~> 3.0.0)
33
- activerecord (3.2.5)
34
- activemodel (= 3.2.5)
35
- activesupport (= 3.2.5)
26
+ activerecord (3.2.8)
27
+ activemodel (= 3.2.8)
28
+ activesupport (= 3.2.8)
36
29
  arel (~> 3.0.2)
37
30
  tzinfo (~> 0.3.29)
38
- activeresource (3.2.5)
39
- activemodel (= 3.2.5)
40
- activesupport (= 3.2.5)
41
- activesupport (3.2.5)
31
+ activeresource (3.2.8)
32
+ activemodel (= 3.2.8)
33
+ activesupport (= 3.2.8)
34
+ activesupport (3.2.8)
42
35
  i18n (~> 0.6)
43
36
  multi_json (~> 1.0)
37
+ appraisal (0.5.1)
38
+ bundler
39
+ rake
44
40
  arel (3.0.2)
45
- builder (3.0.0)
46
- diff-lcs (1.1.2)
41
+ builder (3.0.4)
42
+ bump (0.3.5)
43
+ diff-lcs (1.1.3)
47
44
  erubis (2.7.0)
48
- fast_gettext (0.6.9)
49
- haml (3.1.4)
50
- hamlet (0.1)
51
- slim (~> 1.0)
45
+ fast_gettext (0.6.11)
46
+ gettext (2.3.3)
47
+ locale
48
+ haml (3.1.7)
49
+ hamlet (0.5.0.1)
50
+ slim (~> 1.0.0)
52
51
  hike (1.2.1)
53
- i18n (0.6.0)
52
+ i18n (0.6.1)
54
53
  journey (1.0.4)
55
- json (1.7.3)
54
+ json (1.7.5)
56
55
  locale (2.0.8)
57
56
  mail (2.4.4)
58
57
  i18n (>= 0.4.0)
59
58
  mime-types (~> 1.16)
60
59
  treetop (~> 1.4.8)
61
- mime-types (1.18)
62
- multi_json (1.3.6)
60
+ mime-types (1.19)
61
+ multi_json (1.3.7)
63
62
  polyglot (0.3.3)
64
63
  rack (1.4.1)
65
64
  rack-cache (1.2)
66
65
  rack (>= 0.4)
67
66
  rack-ssl (1.3.2)
68
67
  rack
69
- rack-test (0.6.1)
68
+ rack-test (0.6.2)
70
69
  rack (>= 1.0)
71
- rails (3.2.5)
72
- actionmailer (= 3.2.5)
73
- actionpack (= 3.2.5)
74
- activerecord (= 3.2.5)
75
- activeresource (= 3.2.5)
76
- activesupport (= 3.2.5)
70
+ rails (3.2.8)
71
+ actionmailer (= 3.2.8)
72
+ actionpack (= 3.2.8)
73
+ activerecord (= 3.2.8)
74
+ activeresource (= 3.2.8)
75
+ activesupport (= 3.2.8)
77
76
  bundler (~> 1.0)
78
- railties (= 3.2.5)
79
- railties (3.2.5)
80
- actionpack (= 3.2.5)
81
- activesupport (= 3.2.5)
77
+ railties (= 3.2.8)
78
+ railties (3.2.8)
79
+ actionpack (= 3.2.8)
80
+ activesupport (= 3.2.8)
82
81
  rack-ssl (~> 1.3.2)
83
82
  rake (>= 0.8.7)
84
83
  rdoc (~> 3.4)
85
84
  thor (>= 0.14.6, < 2.0)
86
- rake (0.9.2)
85
+ rake (0.9.2.2)
87
86
  rdoc (3.12)
88
87
  json (~> 1.4)
89
- rspec (2.6.0)
90
- rspec-core (~> 2.6.0)
91
- rspec-expectations (~> 2.6.0)
92
- rspec-mocks (~> 2.6.0)
93
- rspec-core (2.6.4)
94
- rspec-expectations (2.6.0)
95
- diff-lcs (~> 1.1.2)
96
- rspec-mocks (2.6.0)
88
+ rspec (2.11.0)
89
+ rspec-core (~> 2.11.0)
90
+ rspec-expectations (~> 2.11.0)
91
+ rspec-mocks (~> 2.11.0)
92
+ rspec-core (2.11.1)
93
+ rspec-expectations (2.11.3)
94
+ diff-lcs (~> 1.1.3)
95
+ rspec-mocks (2.11.3)
97
96
  ruby_parser (2.3.1)
98
97
  sexp_processor (~> 3.0)
99
- sexp_processor (3.0.10)
100
- slim (1.2.1)
101
- temple (~> 0.4.0)
102
- tilt (~> 1.3.3)
98
+ sexp_processor (3.2.0)
99
+ slim (1.0.4)
100
+ temple (~> 0.3.4)
101
+ tilt (~> 1.3.2)
103
102
  sprockets (2.1.3)
104
103
  hike (~> 1.2)
105
104
  rack (~> 1.0)
106
105
  tilt (~> 1.1, != 1.3.0)
107
106
  sqlite3 (1.3.6)
108
- temple (0.4.0)
109
- thor (0.15.2)
107
+ temple (0.3.5)
108
+ thor (0.16.0)
110
109
  tilt (1.3.3)
111
- treetop (1.4.10)
110
+ treetop (1.4.12)
112
111
  polyglot
113
112
  polyglot (>= 0.3.1)
114
- tzinfo (0.3.33)
113
+ tzinfo (0.3.35)
115
114
 
116
115
  PLATFORMS
117
116
  ruby
118
117
 
119
118
  DEPENDENCIES
120
- gettext (= 2.3.1)!
119
+ appraisal
120
+ bump
121
+ gettext
121
122
  gettext_i18n_rails!
122
123
  haml
123
124
  hamlet
124
- rails (~> 3)
125
+ rails
125
126
  rake
126
- rspec (~> 2)
127
- ruby_parser
127
+ rspec
128
+ ruby_parser (~> 2.3)
128
129
  slim
129
- sqlite3 (~> 1.3.6)
130
+ sqlite3
data/Rakefile CHANGED
@@ -1,29 +1,11 @@
1
1
  require 'bundler/gem_tasks'
2
+ require 'appraisal'
3
+ require 'bump/tasks'
2
4
 
3
5
  task :spec do
4
6
  sh "rspec spec"
5
7
  end
6
8
 
7
- task :default do # can fail when run with bundler
8
- ['2.3.14', '~>3.0.15', '~>3.1.6', '~>3.2.6'].each do |version|
9
- sh "export RAILS='#{version}' && (bundle check || bundle) && bundle exec rake spec"
10
- end
11
- sh "git checkout Gemfile.lock"
12
- end
13
-
14
- # extracted from https://github.com/grosser/project_template
15
- rule /^version:bump:.*/ do |t|
16
- file = "lib/gettext_i18n_rails/version.rb"
17
-
18
- sh "git status | grep 'nothing to commit'" # ensure we are not dirty
19
- index = ["major", "minor", "patch"].index(t.name.split(':').last)
20
- version_file = File.read(file)
21
- old_version, *version_parts = version_file.match(/(\d+)\.(\d+)\.(\d+)/).to_a
22
- version_parts[index] = version_parts[index].to_i + 1
23
- version_parts[2] = 0 if index < 2 # remove patch for minor
24
- version_parts[1] = 0 if index < 1 # remove minor for major
25
- new_version = version_parts * '.'
26
-
27
- File.open(file,"w"){|f| f.write(version_file.sub(old_version, new_version)) }
28
- sh "bundle && git add #{file} Gemfile.lock && git commit -m 'bump version to #{new_version}'"
9
+ task :default do
10
+ sh "bundle exec rake appraisal:install && bundle exec rake appraisal spec"
29
11
  end
data/Readme.md CHANGED
@@ -229,6 +229,7 @@ If want to use your .PO files on client side javascript you should have a look a
229
229
  - [Julien Letessier](https://github.com/mezis)
230
230
  - [Seb Bacon](https://github.com/sebbacon)
231
231
  - [Ramón Cahenzli](https://github.com/psy-q)
232
+ - [rustygeldmacher](https://github.com/rustygeldmacher)
232
233
 
233
234
  [Michael Grosser](http://grosser.it)<br/>
234
235
  grosser.michael@gmail.com<br/>
@@ -0,0 +1,16 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source :rubygems
4
+
5
+ gem "appraisal"
6
+ gem "haml"
7
+ gem "slim"
8
+ gem "hamlet"
9
+ gem "ruby_parser", "~> 2.3"
10
+ gem "gettext"
11
+ gem "sqlite3"
12
+ gem "rake"
13
+ gem "rspec"
14
+ gem "rails", "~>2.3.0"
15
+
16
+ gemspec :path=>"../"
@@ -0,0 +1,72 @@
1
+ PATH
2
+ remote: /Users/mgrosser/code/tools/gettext_i18n_rails
3
+ specs:
4
+ gettext_i18n_rails (0.7.1)
5
+ fast_gettext (>= 0.4.8)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ actionmailer (2.3.14)
11
+ actionpack (= 2.3.14)
12
+ actionpack (2.3.14)
13
+ activesupport (= 2.3.14)
14
+ rack (~> 1.1.0)
15
+ activerecord (2.3.14)
16
+ activesupport (= 2.3.14)
17
+ activeresource (2.3.14)
18
+ activesupport (= 2.3.14)
19
+ activesupport (2.3.14)
20
+ appraisal (0.5.1)
21
+ bundler
22
+ rake
23
+ diff-lcs (1.1.3)
24
+ fast_gettext (0.6.11)
25
+ gettext (2.3.3)
26
+ locale
27
+ haml (3.1.7)
28
+ hamlet (0.5.0.1)
29
+ slim (~> 1.0.0)
30
+ locale (2.0.8)
31
+ rack (1.1.3)
32
+ rails (2.3.14)
33
+ actionmailer (= 2.3.14)
34
+ actionpack (= 2.3.14)
35
+ activerecord (= 2.3.14)
36
+ activeresource (= 2.3.14)
37
+ activesupport (= 2.3.14)
38
+ rake (>= 0.8.3)
39
+ rake (0.9.2.2)
40
+ rspec (2.11.0)
41
+ rspec-core (~> 2.11.0)
42
+ rspec-expectations (~> 2.11.0)
43
+ rspec-mocks (~> 2.11.0)
44
+ rspec-core (2.11.1)
45
+ rspec-expectations (2.11.3)
46
+ diff-lcs (~> 1.1.3)
47
+ rspec-mocks (2.11.3)
48
+ ruby_parser (2.3.1)
49
+ sexp_processor (~> 3.0)
50
+ sexp_processor (3.2.0)
51
+ slim (1.0.4)
52
+ temple (~> 0.3.4)
53
+ tilt (~> 1.3.2)
54
+ sqlite3 (1.3.6)
55
+ temple (0.3.5)
56
+ tilt (1.3.3)
57
+
58
+ PLATFORMS
59
+ ruby
60
+
61
+ DEPENDENCIES
62
+ appraisal
63
+ gettext
64
+ gettext_i18n_rails!
65
+ haml
66
+ hamlet
67
+ rails (~> 2.3.0)
68
+ rake
69
+ rspec
70
+ ruby_parser (~> 2.3)
71
+ slim
72
+ sqlite3
@@ -0,0 +1,16 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source :rubygems
4
+
5
+ gem "appraisal"
6
+ gem "haml"
7
+ gem "slim"
8
+ gem "hamlet"
9
+ gem "ruby_parser", "~> 2.3"
10
+ gem "gettext"
11
+ gem "sqlite3"
12
+ gem "rake"
13
+ gem "rspec"
14
+ gem "rails", "~>3.0.0"
15
+
16
+ gemspec :path=>"../"
@@ -0,0 +1,120 @@
1
+ PATH
2
+ remote: /Users/mgrosser/code/tools/gettext_i18n_rails
3
+ specs:
4
+ gettext_i18n_rails (0.7.1)
5
+ fast_gettext (>= 0.4.8)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ abstract (1.0.0)
11
+ actionmailer (3.0.17)
12
+ actionpack (= 3.0.17)
13
+ mail (~> 2.2.19)
14
+ actionpack (3.0.17)
15
+ activemodel (= 3.0.17)
16
+ activesupport (= 3.0.17)
17
+ builder (~> 2.1.2)
18
+ erubis (~> 2.6.6)
19
+ i18n (~> 0.5.0)
20
+ rack (~> 1.2.5)
21
+ rack-mount (~> 0.6.14)
22
+ rack-test (~> 0.5.7)
23
+ tzinfo (~> 0.3.23)
24
+ activemodel (3.0.17)
25
+ activesupport (= 3.0.17)
26
+ builder (~> 2.1.2)
27
+ i18n (~> 0.5.0)
28
+ activerecord (3.0.17)
29
+ activemodel (= 3.0.17)
30
+ activesupport (= 3.0.17)
31
+ arel (~> 2.0.10)
32
+ tzinfo (~> 0.3.23)
33
+ activeresource (3.0.17)
34
+ activemodel (= 3.0.17)
35
+ activesupport (= 3.0.17)
36
+ activesupport (3.0.17)
37
+ appraisal (0.5.1)
38
+ bundler
39
+ rake
40
+ arel (2.0.10)
41
+ builder (2.1.2)
42
+ diff-lcs (1.1.3)
43
+ erubis (2.6.6)
44
+ abstract (>= 1.0.0)
45
+ fast_gettext (0.6.11)
46
+ gettext (2.3.3)
47
+ locale
48
+ haml (3.1.7)
49
+ hamlet (0.5.0.1)
50
+ slim (~> 1.0.0)
51
+ i18n (0.5.0)
52
+ json (1.7.5)
53
+ locale (2.0.8)
54
+ mail (2.2.19)
55
+ activesupport (>= 2.3.6)
56
+ i18n (>= 0.4.0)
57
+ mime-types (~> 1.16)
58
+ treetop (~> 1.4.8)
59
+ mime-types (1.19)
60
+ polyglot (0.3.3)
61
+ rack (1.2.5)
62
+ rack-mount (0.6.14)
63
+ rack (>= 1.0.0)
64
+ rack-test (0.5.7)
65
+ rack (>= 1.0)
66
+ rails (3.0.17)
67
+ actionmailer (= 3.0.17)
68
+ actionpack (= 3.0.17)
69
+ activerecord (= 3.0.17)
70
+ activeresource (= 3.0.17)
71
+ activesupport (= 3.0.17)
72
+ bundler (~> 1.0)
73
+ railties (= 3.0.17)
74
+ railties (3.0.17)
75
+ actionpack (= 3.0.17)
76
+ activesupport (= 3.0.17)
77
+ rake (>= 0.8.7)
78
+ rdoc (~> 3.4)
79
+ thor (~> 0.14.4)
80
+ rake (0.9.2.2)
81
+ rdoc (3.12)
82
+ json (~> 1.4)
83
+ rspec (2.11.0)
84
+ rspec-core (~> 2.11.0)
85
+ rspec-expectations (~> 2.11.0)
86
+ rspec-mocks (~> 2.11.0)
87
+ rspec-core (2.11.1)
88
+ rspec-expectations (2.11.3)
89
+ diff-lcs (~> 1.1.3)
90
+ rspec-mocks (2.11.3)
91
+ ruby_parser (2.3.1)
92
+ sexp_processor (~> 3.0)
93
+ sexp_processor (3.2.0)
94
+ slim (1.0.4)
95
+ temple (~> 0.3.4)
96
+ tilt (~> 1.3.2)
97
+ sqlite3 (1.3.6)
98
+ temple (0.3.5)
99
+ thor (0.14.6)
100
+ tilt (1.3.3)
101
+ treetop (1.4.12)
102
+ polyglot
103
+ polyglot (>= 0.3.1)
104
+ tzinfo (0.3.35)
105
+
106
+ PLATFORMS
107
+ ruby
108
+
109
+ DEPENDENCIES
110
+ appraisal
111
+ gettext
112
+ gettext_i18n_rails!
113
+ haml
114
+ hamlet
115
+ rails (~> 3.0.0)
116
+ rake
117
+ rspec
118
+ ruby_parser (~> 2.3)
119
+ slim
120
+ sqlite3