chosen_template 0.1.0 → 1.0.0

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
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96b0a6dd651209a42b4ee3fe1e841a6f9cded28f
4
- data.tar.gz: 665535bfce3cf4ccb450ae556b487db5d36395ce
3
+ metadata.gz: f6228571f0e5e1d524b703c9e41e328c449004d9
4
+ data.tar.gz: c190cbe4062305e22bf99dbf64e615ad728eff98
5
5
  SHA512:
6
- metadata.gz: 3df17c7eb744b14b05b0cd1a10af32538d09f006a823f9bd79dcfb7d5052ef9ac647f7f6b41126b5483c8099c230e0a4c51becb60f3c09e045359cd25ccf4d27
7
- data.tar.gz: ea03bd86b44c1d64c36bdd7171420831b567b6bb461d5687d06bc229a2a77d4ea5902a0411141caffcb82b79902433f7d14e69e45cbbd72582a97b0c37855530
6
+ metadata.gz: cdc2be2060b3767ff28e3ce15bb3fa0af6ac328c323f1c6dc58a08b8a00a93a4a58178d4d6b43d302fb0cbee320aad72d861fb29a8c4dfa198c7b505ab120b54
7
+ data.tar.gz: c362090dff1d6a06096510b81ee1b1cf754c4d36c67dfc8292da07efd930818b73a21c6cd517ee0bb11519d924ea7945cfe3c4057e250d25de151ff2e38cf58e
@@ -0,0 +1 @@
1
+ ruby-2.0.0-p353
@@ -0,0 +1,3 @@
1
+ # v1.0.0
2
+
3
+ - Drop support for < Rails 4
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'sqlite3'
27
27
  spec.add_development_dependency 'timecop'
28
28
  spec.add_development_dependency 'database_cleaner'
29
- spec.add_dependency "rails", ">= 3.0.0"
29
+ spec.add_dependency "rails", ">= 4.0.0"
30
30
  end
@@ -15,7 +15,7 @@ module ChosenTemplate
15
15
  template_scope = if template_class.column_names.include?(foreign_key)
16
16
  self.send(template_choice)
17
17
  else
18
- template_class.scoped
18
+ template_class.all
19
19
  end
20
20
  template_scope.send(order_scope_name).first
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module ChosenTemplate
2
- VERSION = "0.1.0"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -12,7 +12,7 @@ describe PageTemplate do
12
12
  describe '.by_template_published_at' do
13
13
  it 'should order the published models by template_published_at' do
14
14
  described_class.by_template_published_at.to_sql.should ==
15
- %Q(SELECT "#{described_class.table_name}".* FROM "#{described_class.table_name}" WHERE (#{described_class.table_name}.template_published_at IS NOT NULL) ORDER BY #{described_class.table_name}.template_published_at DESC)
15
+ %Q(SELECT "#{described_class.table_name}".* FROM "#{described_class.table_name}" WHERE (#{described_class.table_name}.template_published_at IS NOT NULL) ORDER BY #{described_class.table_name}.template_published_at DESC)
16
16
  end
17
17
  end
18
18
 
@@ -26,7 +26,7 @@ describe PageTemplate do
26
26
  describe '.by_template_previewed_at' do
27
27
  it 'should order the previewed models by template_previewed_at' do
28
28
  described_class.by_template_previewed_at.to_sql.should ==
29
- %Q(SELECT "#{described_class.table_name}".* FROM "#{described_class.table_name}" WHERE (#{described_class.table_name}.template_previewed_at IS NOT NULL) ORDER BY #{described_class.table_name}.template_previewed_at DESC)
29
+ %Q(SELECT "#{described_class.table_name}".* FROM "#{described_class.table_name}" WHERE (#{described_class.table_name}.template_previewed_at IS NOT NULL) ORDER BY #{described_class.table_name}.template_previewed_at DESC)
30
30
  end
31
31
  end
32
32
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chosen_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-26 00:00:00.000000000 Z
11
+ date: 2014-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - '>='
130
130
  - !ruby/object:Gem::Version
131
- version: 3.0.0
131
+ version: 4.0.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '>='
137
137
  - !ruby/object:Gem::Version
138
- version: 3.0.0
138
+ version: 4.0.0
139
139
  description: Manage the preview and publish tasks of templates
140
140
  email:
141
141
  - ramon.tayag@gmail.com
@@ -144,6 +144,8 @@ extensions: []
144
144
  extra_rdoc_files: []
145
145
  files:
146
146
  - .gitignore
147
+ - .ruby-version
148
+ - CHANGELOG.md
147
149
  - Gemfile
148
150
  - LICENSE.txt
149
151
  - README.md
@@ -224,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
226
  version: '0'
225
227
  requirements: []
226
228
  rubyforge_project:
227
- rubygems_version: 2.0.3
229
+ rubygems_version: 2.1.11
228
230
  signing_key:
229
231
  specification_version: 4
230
232
  summary: Manage the preview and publish tasks of templates. See the readme for a scenario