i18n-sequel_bitemporal 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,8 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
 
22
22
  s.add_dependency 'i18n', '>= 0.5', "< 0.7.0"
23
- s.add_dependency 'sequel', '~> 3.28'
24
- s.add_dependency 'sequel_bitemporal', '~> 0.3.0'
23
+ s.add_dependency 'sequel_bitemporal', '~> 0.4.0'
25
24
 
26
25
  s.add_development_dependency "test_declarative"
27
26
  s.add_development_dependency "mocha"
@@ -119,7 +119,7 @@ module I18n
119
119
 
120
120
  def_dataset_method :lookup_exactly do |keys|
121
121
  keys = Array(keys).map! { |key| key.to_s }
122
- eager_graph(:translation_current_version).filter(:key => keys.last)
122
+ eager_graph(:current_version).filter(:key => keys.last)
123
123
  end
124
124
 
125
125
  def_dataset_method :lookup_and_current do |with_current, keys, *separator|
@@ -131,7 +131,7 @@ module I18n
131
131
  end
132
132
 
133
133
  namespace = "#{keys.last}#{I18n::Backend::Flatten::FLATTEN_SEPARATOR}%"
134
- set = eager_graph(:translation_current_version).filter({:key => keys} | :key.like(namespace))
134
+ set = eager_graph(:current_version).filter({:key => keys} | :key.like(namespace))
135
135
  set = set.filter({:translation_current_version__id => nil}.sql_negate) if with_current
136
136
  set
137
137
  end
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module SequelBitemporal
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-sequel_bitemporal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
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: 2011-11-25 00:00:00.000000000 Z
12
+ date: 2011-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &2166798080 !ruby/object:Gem::Requirement
16
+ requirement: &70181264996740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -24,32 +24,21 @@ dependencies:
24
24
  version: 0.7.0
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *2166798080
28
- - !ruby/object:Gem::Dependency
29
- name: sequel
30
- requirement: &2166796900 !ruby/object:Gem::Requirement
31
- none: false
32
- requirements:
33
- - - ~>
34
- - !ruby/object:Gem::Version
35
- version: '3.28'
36
- type: :runtime
37
- prerelease: false
38
- version_requirements: *2166796900
27
+ version_requirements: *70181264996740
39
28
  - !ruby/object:Gem::Dependency
40
29
  name: sequel_bitemporal
41
- requirement: &2166796160 !ruby/object:Gem::Requirement
30
+ requirement: &70181264995560 !ruby/object:Gem::Requirement
42
31
  none: false
43
32
  requirements:
44
33
  - - ~>
45
34
  - !ruby/object:Gem::Version
46
- version: 0.3.0
35
+ version: 0.4.0
47
36
  type: :runtime
48
37
  prerelease: false
49
- version_requirements: *2166796160
38
+ version_requirements: *70181264995560
50
39
  - !ruby/object:Gem::Dependency
51
40
  name: test_declarative
52
- requirement: &2166811860 !ruby/object:Gem::Requirement
41
+ requirement: &70181264994980 !ruby/object:Gem::Requirement
53
42
  none: false
54
43
  requirements:
55
44
  - - ! '>='
@@ -57,10 +46,10 @@ dependencies:
57
46
  version: '0'
58
47
  type: :development
59
48
  prerelease: false
60
- version_requirements: *2166811860
49
+ version_requirements: *70181264994980
61
50
  - !ruby/object:Gem::Dependency
62
51
  name: mocha
63
- requirement: &2166811060 !ruby/object:Gem::Requirement
52
+ requirement: &70181264994280 !ruby/object:Gem::Requirement
64
53
  none: false
65
54
  requirements:
66
55
  - - ! '>='
@@ -68,10 +57,10 @@ dependencies:
68
57
  version: '0'
69
58
  type: :development
70
59
  prerelease: false
71
- version_requirements: *2166811060
60
+ version_requirements: *70181264994280
72
61
  - !ruby/object:Gem::Dependency
73
62
  name: rake
74
- requirement: &2166810440 !ruby/object:Gem::Requirement
63
+ requirement: &70181264993580 !ruby/object:Gem::Requirement
75
64
  none: false
76
65
  requirements:
77
66
  - - ! '>='
@@ -79,10 +68,10 @@ dependencies:
79
68
  version: '0'
80
69
  type: :development
81
70
  prerelease: false
82
- version_requirements: *2166810440
71
+ version_requirements: *70181264993580
83
72
  - !ruby/object:Gem::Dependency
84
73
  name: sqlite3
85
- requirement: &2166809940 !ruby/object:Gem::Requirement
74
+ requirement: &70181264992980 !ruby/object:Gem::Requirement
86
75
  none: false
87
76
  requirements:
88
77
  - - ! '>='
@@ -90,7 +79,7 @@ dependencies:
90
79
  version: '0'
91
80
  type: :development
92
81
  prerelease: false
93
- version_requirements: *2166809940
82
+ version_requirements: *70181264992980
94
83
  description: I18n Bitemporal Sequel backend. Allows to store translations in a database
95
84
  using Sequel using a bitemporal approach, e.g. for providing a web-interface for
96
85
  managing translations.
@@ -137,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
126
  version: '0'
138
127
  segments:
139
128
  - 0
140
- hash: 2764887417256737176
129
+ hash: -3289983423413557056
141
130
  required_rubygems_version: !ruby/object:Gem::Requirement
142
131
  none: false
143
132
  requirements:
@@ -146,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
135
  version: '0'
147
136
  segments:
148
137
  - 0
149
- hash: 2764887417256737176
138
+ hash: -3289983423413557056
150
139
  requirements: []
151
140
  rubyforge_project: ! '[none]'
152
141
  rubygems_version: 1.8.10