babylonia-rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 23a9d0abe039872a11f1cc2e55c0d4d1e50898f1
4
- data.tar.gz: 256aedb91e172f3bdcc51d5e03de89dd6348408f
5
- SHA512:
6
- metadata.gz: 23c004c9cc8086efce000c3bfc5c37d33f660ce32aa818a30730c603076a81875b33178dafdeae4c191108c0e455fb91e33bba507145ffcd5003d1782b8cc443
7
- data.tar.gz: 392d0bc2877b8ffd537acbec02d019a77d72d061025e982e98f7f92025c4c6969efc9e5629532de68608164fcb6b1a6c462d17111077f2f534d6950dd9e149da
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c1eb932d33dda35b95978ef7f97ef5405b2eb6c2
4
+ data.tar.gz: 05d83e26a2812e2c27d5be947ecfcf5dfa2ca6bc
5
+ SHA512:
6
+ metadata.gz: cece1e4c9f9fd79bf6b7713ec96c67545d8d1d0fa977de2f764aaa8e3a29a9b9db5a3647c46adeb7b7f2636b75c691715f26fbac82007b7515d4a1a0d32cab5a
7
+ data.tar.gz: 5f9aeb5d22fb102163b9d1b24af682dd097bce9d96d5ee474f90a96912ce2035263bef6bfafbe9fd1c689b7b022cebcf6f83a614480a8fad9b5ea477e38108c5
@@ -8,9 +8,13 @@ env:
8
8
  rvm:
9
9
  - 1.9.3
10
10
  - 2.0.0
11
- - rbx-19mode
12
- - rbx-20mode
11
+ - 2.1.0
12
+ - rbx
13
13
  - jruby-19mode
14
14
  - jruby-20mode
15
15
 
16
- script: bundle exec rspec
16
+ script: bundle exec rspec
17
+
18
+ matrix:
19
+ allow_failures:
20
+ - rvm: 2.1.0
data/Gemfile CHANGED
@@ -3,8 +3,8 @@ source "http://rubygems.org"
3
3
  gemspec
4
4
 
5
5
  group :development do
6
- gem "yard", ">= 0.7.4"
7
- gem "bundler", ">= 1.0.0"
6
+ gem "yard", "~> 0.8", ">= 0.7.4"
7
+ gem "bundler", "~> 1.3", ">= 1.0.0"
8
8
  if ENV['RUBY_VERSION'] =~ /jruby/
9
9
  gem 'activerecord-jdbcmysql-adapter'
10
10
  else
@@ -1,4 +1,4 @@
1
- = babylonia-rails {<img src="https://secure.travis-ci.org/beatrichartz/babylonia-rails.png?branch=master" />}[http://travis-ci.org/beatrichartz/babylonia-rails] {<img src="https://gemnasium.com/beatrichartz/babylonia-rails.png" alt="Dependency Status" />}[https://gemnasium.com/beatrichartz/babylonia-rails] {<img src="https://codeclimate.com/github/beatrichartz/babylonia-rails.png" />}[https://codeclimate.com/github/beatrichartz/babylonia-rails]
1
+ = babylonia-rails {<img src="https://secure.travis-ci.org/beatrichartz/babylonia-rails.png?branch=master" />}[http://travis-ci.org/beatrichartz/babylonia-rails] {<img src="https://gemnasium.com/beatrichartz/babylonia-rails.png" alt="Dependency Status" />}[https://gemnasium.com/beatrichartz/babylonia-rails] {<img src="https://codeclimate.com/github/beatrichartz/babylonia-rails.png" />}[https://codeclimate.com/github/beatrichartz/babylonia-rails] {<img src="https://d2weczhvl823v0.cloudfront.net/beatrichartz/babylonia-rails/trend.png"/>}[https://bitdeli.com/free]
2
2
  Let there be languages for your rails users!
3
3
 
4
4
  == Installation
@@ -18,8 +18,9 @@ Gem::Specification.new do |s|
18
18
 
19
19
  active_record = ENV["ACTIVE_RECORD_VERSION"] || ">= 3.2.0"
20
20
 
21
- s.add_dependency "babylonia", ">= 0.1.1"
21
+ s.add_dependency "babylonia", "~> 0.2", ">= 0.1.1"
22
22
  s.add_dependency "activerecord", active_record
23
- s.add_development_dependency "bundler", ">= 1.0.0"
23
+ s.add_development_dependency "bundler", "~> 1.3", ">= 1.0.0"
24
+ s.add_development_dependency "rubysl", "~> 2.0" if 'rbx' == RUBY_ENGINE
24
25
  end
25
26
 
@@ -0,0 +1,42 @@
1
+ rbx = defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE
2
+
3
+ def already_installed(dep)
4
+ !Gem::DependencyInstaller.new(:domain => :local).find_gems_with_sources(dep).empty? ||
5
+ !Gem::DependencyInstaller.new(:domain => :local,:prerelease => true).find_gems_with_sources(dep).empty?
6
+ end
7
+
8
+ if rbx
9
+ require 'rubygems'
10
+ require 'rubygems/command.rb'
11
+ require 'rubygems/dependency.rb'
12
+ require 'rubygems/dependency_installer.rb'
13
+
14
+ begin
15
+ Gem::Command.build_args = ARGV
16
+ rescue NoMethodError
17
+ end
18
+
19
+ dep = [
20
+ Gem::Dependency.new("rubysl", '~> 2.0')
21
+ ].reject{|d| already_installed(d) }
22
+
23
+ begin
24
+ puts "Installing base gem"
25
+ inst = Gem::DependencyInstaller.new
26
+ dep.each {|d| inst.install d }
27
+ rescue
28
+ inst = Gem::DependencyInstaller.new(:prerelease => true)
29
+ begin
30
+ dep.each {|d| inst.install d }
31
+ rescue Exception => e
32
+ puts e
33
+ puts e.backtrace.join "\n "
34
+ exit(1)
35
+ end
36
+ end unless dep.size == 0
37
+ end
38
+
39
+ # create dummy rakefile to indicate success
40
+ f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
41
+ f.write("task :default\n")
42
+ f.close
@@ -1,5 +1,5 @@
1
1
  module Babylonia
2
2
  module Rails
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,64 +1,71 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: babylonia-rails
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Beat Richartz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-21 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2014-01-03 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
14
15
  name: babylonia
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: 0.1.1
20
- type: :runtime
21
16
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: "0.2"
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
26
24
  version: 0.1.1
27
- - !ruby/object:Gem::Dependency
28
- name: activerecord
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '>='
32
- - !ruby/object:Gem::Version
33
- version: 3.2.0
34
25
  type: :runtime
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: activerecord
35
29
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '>='
39
- - !ruby/object:Gem::Version
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
40
34
  version: 3.2.0
41
- - !ruby/object:Gem::Dependency
35
+ type: :runtime
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
42
38
  name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
39
+ prerelease: false
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: "1.3"
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
47
  version: 1.0.0
48
48
  type: :development
49
+ version_requirements: *id003
50
+ - !ruby/object:Gem::Dependency
51
+ name: rubysl
49
52
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: 1.0.0
55
- description: Babylonia for rails lets your rails users translate their content into
56
- their languages without additional tables or columns in your tables
53
+ requirement: &id004 !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ~>
56
+ - !ruby/object:Gem::Version
57
+ version: "2.0"
58
+ type: :development
59
+ version_requirements: *id004
60
+ description: Babylonia for rails lets your rails users translate their content into their languages without additional tables or columns in your tables
57
61
  email: attr_accessor@gmail.com
58
62
  executables: []
63
+
59
64
  extensions: []
65
+
60
66
  extra_rdoc_files: []
61
- files:
67
+
68
+ files:
62
69
  - .gitignore
63
70
  - .rspec
64
71
  - .ruby-gemset
@@ -68,6 +75,7 @@ files:
68
75
  - LICENSE
69
76
  - README.rdoc
70
77
  - babylonia-rails.gemspec
78
+ - ext/mkrf_conf.rb
71
79
  - lib/babylonia/rails.rb
72
80
  - lib/babylonia/rails/class_methods.rb
73
81
  - lib/babylonia/rails/integration.rb
@@ -83,30 +91,32 @@ files:
83
91
  - spec/support/database.yml
84
92
  - spec/support/tables.rb
85
93
  homepage:
86
- licenses:
94
+ licenses:
87
95
  - MIT
88
96
  metadata: {}
97
+
89
98
  post_install_message:
90
99
  rdoc_options: []
91
- require_paths:
100
+
101
+ require_paths:
92
102
  - lib
93
- required_ruby_version: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - '>='
96
- - !ruby/object:Gem::Version
97
- version: '0'
98
- required_rubygems_version: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - '>='
101
- - !ruby/object:Gem::Version
102
- version: '0'
103
+ required_ruby_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - &id005
106
+ - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: "0"
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - *id005
103
112
  requirements: []
113
+
104
114
  rubyforge_project:
105
- rubygems_version: 2.0.7
115
+ rubygems_version: 2.2.0
106
116
  signing_key:
107
117
  specification_version: 4
108
118
  summary: Let there be languages for your rails users!
109
- test_files:
119
+ test_files:
110
120
  - spec/babylonia-rails/integration_spec.rb
111
121
  - spec/babylonia-rails/persistence_spec.rb
112
122
  - spec/babylonia-rails/validators/locale_validator_spec.rb