degu 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,22 @@
1
+ # Passes arguments to bundle install (http://gembundler.com/man/bundle-install.1.html)
2
+ bundler_args: --binstubs
3
+
4
+ # Specify which ruby versions you wish to run your tests on, each version will be used
5
+ rvm:
6
+ - 1.8.7
7
+ - 1.9.2
8
+ - 1.9.3
9
+ - rbx-18mode
10
+ - rbx-19mode
11
+ - ree
12
+ - jruby-18mode
13
+ - jruby-19mode
14
+ - ruby-head
15
+ matrix:
16
+ allow_failures:
17
+ - rvm: jruby-18mode
18
+ - rvm: jruby-19mode
19
+ - rvm: rbx-18mode
20
+ - rvm: rbx-19mode
21
+
22
+ script: "bundle exec rake"
data/Rakefile CHANGED
@@ -21,6 +21,7 @@ GemHadar do
21
21
  development_dependency 'mocha'
22
22
  development_dependency 'sqlite3'
23
23
  development_dependency 'rspec'
24
+ development_dependency 'utils'
24
25
  end
25
26
 
26
27
  desc 'Run specs and tests'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/degu.gemspec CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "degu"
5
- s.version = "0.1.2"
5
+ s.version = "0.1.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Florian Frank"]
9
- s.date = "2012-07-05"
9
+ s.date = "2012-07-30"
10
10
  s.description = "Library that includes enums, and rails support for enums and bitfield sets."
11
11
  s.email = "dev@pkw.de"
12
12
  s.extra_rdoc_files = ["README.rdoc", "lib/degu/has_enum.rb", "lib/degu/has_set.rb", "lib/degu/polite.rb", "lib/degu/renum/enumerated_value.rb", "lib/degu/renum/enumerated_value_type_factory.rb", "lib/degu/renum.rb", "lib/degu/rude.rb", "lib/degu/version.rb", "lib/degu.rb"]
13
- s.files = [".gitignore", "Gemfile", "README.rdoc", "Rakefile", "VERSION", "degu.gemspec", "lib/degu.rb", "lib/degu/has_enum.rb", "lib/degu/has_set.rb", "lib/degu/polite.rb", "lib/degu/renum.rb", "lib/degu/renum/enumerated_value.rb", "lib/degu/renum/enumerated_value_type_factory.rb", "lib/degu/rude.rb", "lib/degu/version.rb", "spec/renum_spec.rb", "spec/spec_helper.rb", "test/has_enum_test.rb", "test/has_set_test.rb", "test/test_helper.rb", "test_helper.rb"]
13
+ s.files = [".gitignore", ".travis.yml", "Gemfile", "README.rdoc", "Rakefile", "VERSION", "degu.gemspec", "lib/degu.rb", "lib/degu/has_enum.rb", "lib/degu/has_set.rb", "lib/degu/polite.rb", "lib/degu/renum.rb", "lib/degu/renum/enumerated_value.rb", "lib/degu/renum/enumerated_value_type_factory.rb", "lib/degu/rude.rb", "lib/degu/version.rb", "spec/renum_spec.rb", "spec/spec_helper.rb", "test/has_enum_test.rb", "test/has_set_test.rb", "test/test_helper.rb", "test_helper.rb"]
14
14
  s.homepage = "http://github.com/caroo/degu"
15
15
  s.rdoc_options = ["--title", "Degu - Library for enums and bitfield sets.", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
@@ -26,12 +26,14 @@ Gem::Specification.new do |s|
26
26
  s.add_development_dependency(%q<mocha>, [">= 0"])
27
27
  s.add_development_dependency(%q<sqlite3>, [">= 0"])
28
28
  s.add_development_dependency(%q<rspec>, [">= 0"])
29
+ s.add_development_dependency(%q<utils>, [">= 0"])
29
30
  s.add_runtime_dependency(%q<activerecord>, ["~> 3.0"])
30
31
  else
31
32
  s.add_dependency(%q<gem_hadar>, ["~> 0.1.8"])
32
33
  s.add_dependency(%q<mocha>, [">= 0"])
33
34
  s.add_dependency(%q<sqlite3>, [">= 0"])
34
35
  s.add_dependency(%q<rspec>, [">= 0"])
36
+ s.add_dependency(%q<utils>, [">= 0"])
35
37
  s.add_dependency(%q<activerecord>, ["~> 3.0"])
36
38
  end
37
39
  else
@@ -39,6 +41,7 @@ Gem::Specification.new do |s|
39
41
  s.add_dependency(%q<mocha>, [">= 0"])
40
42
  s.add_dependency(%q<sqlite3>, [">= 0"])
41
43
  s.add_dependency(%q<rspec>, [">= 0"])
44
+ s.add_dependency(%q<utils>, [">= 0"])
42
45
  s.add_dependency(%q<activerecord>, ["~> 3.0"])
43
46
  end
44
47
  end
@@ -157,6 +157,8 @@ module Degu
157
157
 
158
158
  alias_method :id, :index
159
159
 
160
+ alias_method :bitfield_index, :index
161
+
160
162
  def underscored_name
161
163
  name.underscore
162
164
  end
data/lib/degu/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Degu
2
2
  # Degu version
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: degu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-05 00:00:00.000000000 Z
12
+ date: 2012-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gem_hadar
16
- requirement: &2153068860 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: 0.1.8
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2153068860
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.1.8
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: mocha
27
- requirement: &2153067800 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *2153067800
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: sqlite3
38
- requirement: &2153066800 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,31 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *2153066800
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: rspec
49
- requirement: &2153065960 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: utils
80
+ requirement: !ruby/object:Gem::Requirement
50
81
  none: false
51
82
  requirements:
52
83
  - - ! '>='
@@ -54,10 +85,15 @@ dependencies:
54
85
  version: '0'
55
86
  type: :development
56
87
  prerelease: false
57
- version_requirements: *2153065960
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
58
94
  - !ruby/object:Gem::Dependency
59
95
  name: activerecord
60
- requirement: &2153064900 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
61
97
  none: false
62
98
  requirements:
63
99
  - - ~>
@@ -65,7 +101,12 @@ dependencies:
65
101
  version: '3.0'
66
102
  type: :runtime
67
103
  prerelease: false
68
- version_requirements: *2153064900
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '3.0'
69
110
  description: Library that includes enums, and rails support for enums and bitfield
70
111
  sets.
71
112
  email: dev@pkw.de
@@ -84,6 +125,7 @@ extra_rdoc_files:
84
125
  - lib/degu.rb
85
126
  files:
86
127
  - .gitignore
128
+ - .travis.yml
87
129
  - Gemfile
88
130
  - README.rdoc
89
131
  - Rakefile
@@ -120,6 +162,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
162
  - - ! '>='
121
163
  - !ruby/object:Gem::Version
122
164
  version: '0'
165
+ segments:
166
+ - 0
167
+ hash: 1326534228350775604
123
168
  required_rubygems_version: !ruby/object:Gem::Requirement
124
169
  none: false
125
170
  requirements:
@@ -128,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
173
  version: '0'
129
174
  requirements: []
130
175
  rubyforge_project:
131
- rubygems_version: 1.8.11
176
+ rubygems_version: 1.8.24
132
177
  signing_key:
133
178
  specification_version: 3
134
179
  summary: Library for enums and bitfield sets.