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 +4 -4
- data/.ruby-version +1 -0
- data/CHANGELOG.md +3 -0
- data/chosen_template.gemspec +1 -1
- data/lib/chosen_template/chooser.rb +1 -1
- data/lib/chosen_template/version.rb +1 -1
- data/spec/models/page_template_spec.rb +2 -2
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6228571f0e5e1d524b703c9e41e328c449004d9
|
4
|
+
data.tar.gz: c190cbe4062305e22bf99dbf64e615ad728eff98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdc2be2060b3767ff28e3ce15bb3fa0af6ac328c323f1c6dc58a08b8a00a93a4a58178d4d6b43d302fb0cbee320aad72d861fb29a8c4dfa198c7b505ab120b54
|
7
|
+
data.tar.gz: c362090dff1d6a06096510b81ee1b1cf754c4d36c67dfc8292da07efd930818b73a21c6cd517ee0bb11519d924ea7945cfe3c4057e250d25de151ff2e38cf58e
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.0.0-p353
|
data/CHANGELOG.md
ADDED
data/chosen_template.gemspec
CHANGED
@@ -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", ">=
|
29
|
+
spec.add_dependency "rails", ">= 4.0.0"
|
30
30
|
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)
|
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)
|
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:
|
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:
|
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:
|
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:
|
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.
|
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
|