almost-happy 0.4.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +21 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +45 -0
- data/Rakefile +1 -46
- data/almost-happy.gemspec +21 -68
- data/lib/almost_happy.rb +1 -1
- data/test/almost_happy/test_active_record_mixin.rb +21 -0
- data/test/almost_happy/test_convertable.rb +7 -0
- data/test/{test_almost-happy.rb → almost_happy/test_convertor.rb} +1 -1
- data/test/almost_happy/test_format_validator.rb +7 -0
- data/test/almost_happy/test_publishable.rb +7 -0
- data/test/almost_happy/test_scopeable.rb +82 -0
- data/test/helper.rb +11 -0
- data/test/model_definitions.rb +25 -0
- metadata +156 -120
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
almost-happy (1.0.0)
|
5
|
+
RedCloth
|
6
|
+
activerecord (~> 3.0)
|
7
|
+
nokogiri
|
8
|
+
open4
|
9
|
+
rdiscount
|
10
|
+
|
11
|
+
GEM
|
12
|
+
remote: http://rubygems.org/
|
13
|
+
specs:
|
14
|
+
RedCloth (4.2.9)
|
15
|
+
activemodel (3.2.3)
|
16
|
+
activesupport (= 3.2.3)
|
17
|
+
builder (~> 3.0.0)
|
18
|
+
activerecord (3.2.3)
|
19
|
+
activemodel (= 3.2.3)
|
20
|
+
activesupport (= 3.2.3)
|
21
|
+
arel (~> 3.0.2)
|
22
|
+
tzinfo (~> 0.3.29)
|
23
|
+
activesupport (3.2.3)
|
24
|
+
i18n (~> 0.6)
|
25
|
+
multi_json (~> 1.0)
|
26
|
+
arel (3.0.2)
|
27
|
+
builder (3.0.0)
|
28
|
+
i18n (0.6.0)
|
29
|
+
multi_json (1.2.0)
|
30
|
+
nokogiri (1.5.2)
|
31
|
+
open4 (1.3.0)
|
32
|
+
rdiscount (1.6.8)
|
33
|
+
reversible_data (0.1.0)
|
34
|
+
shoulda (2.11.3)
|
35
|
+
sqlite3 (1.3.5)
|
36
|
+
tzinfo (0.3.32)
|
37
|
+
|
38
|
+
PLATFORMS
|
39
|
+
ruby
|
40
|
+
|
41
|
+
DEPENDENCIES
|
42
|
+
almost-happy!
|
43
|
+
reversible_data
|
44
|
+
shoulda
|
45
|
+
sqlite3
|
data/Rakefile
CHANGED
@@ -1,48 +1,3 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
|
-
require '
|
4
|
-
|
5
|
-
begin
|
6
|
-
require 'jeweler'
|
7
|
-
Jeweler::Tasks.new do |gem|
|
8
|
-
gem.name = "almost-happy"
|
9
|
-
gem.summary = %Q{Simple tools for AR + Rails 3 to help make managing your content easy}
|
10
|
-
gem.description = %Q{Helpers, convertors etc for Rails 3 to make page / post models for simple cases simple}
|
11
|
-
gem.email = "sutto@sutto.net"
|
12
|
-
gem.homepage = "http://github.com/Sutto/almost-happy"
|
13
|
-
gem.authors = ["Darcy Laycock"]
|
14
|
-
gem.version = AlmostHappy::VERSION
|
15
|
-
gem.add_dependency "activerecord", ">= 3.0.0.beta3"
|
16
|
-
gem.add_dependency "RedCloth"
|
17
|
-
gem.add_dependency "rdiscount"
|
18
|
-
gem.add_dependency "nokogiri"
|
19
|
-
gem.add_dependency "open4" # For albino
|
20
|
-
gem.add_development_dependency "shoulda", ">= 0"
|
21
|
-
end
|
22
|
-
Jeweler::GemcutterTasks.new
|
23
|
-
rescue LoadError
|
24
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
25
|
-
end
|
26
|
-
|
27
|
-
require 'rake/testtask'
|
28
|
-
Rake::TestTask.new(:test) do |test|
|
29
|
-
test.libs << 'lib' << 'test'
|
30
|
-
test.pattern = 'test/**/test_*.rb'
|
31
|
-
test.verbose = true
|
32
|
-
end
|
33
|
-
|
34
|
-
begin
|
35
|
-
require 'rcov/rcovtask'
|
36
|
-
Rcov::RcovTask.new do |test|
|
37
|
-
test.libs << 'test'
|
38
|
-
test.pattern = 'test/**/test_*.rb'
|
39
|
-
test.verbose = true
|
40
|
-
end
|
41
|
-
rescue LoadError
|
42
|
-
task :rcov do
|
43
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
task :test => :check_dependencies
|
48
|
-
task :default => :test
|
3
|
+
require 'bundler/gem_tasks'
|
data/almost-happy.gemspec
CHANGED
@@ -1,74 +1,27 @@
|
|
1
|
-
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
require File.expand_path('./lib/almost_happy', File.dirname(__FILE__))
|
5
2
|
|
6
3
|
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{almost-happy}
|
8
|
-
s.version = "0.4.1"
|
9
4
|
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
16
|
-
|
17
|
-
"README.md"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
"LICENSE",
|
22
|
-
"README.md",
|
23
|
-
"Rakefile",
|
24
|
-
"almost-happy.gemspec",
|
25
|
-
"lib/almost-happy.rb",
|
26
|
-
"lib/almost_happy.rb",
|
27
|
-
"lib/almost_happy/active_record_mixin.rb",
|
28
|
-
"lib/almost_happy/convertable.rb",
|
29
|
-
"lib/almost_happy/convertor.rb",
|
30
|
-
"lib/almost_happy/format_validator.rb",
|
31
|
-
"lib/almost_happy/publishable.rb",
|
32
|
-
"lib/almost_happy/scopeable.rb",
|
33
|
-
"lib/vendor/albino.rb",
|
34
|
-
"test/helper.rb",
|
35
|
-
"test/test_almost-happy.rb"
|
36
|
-
]
|
37
|
-
s.homepage = %q{http://github.com/Sutto/almost-happy}
|
38
|
-
s.require_paths = ["lib"]
|
39
|
-
s.rubygems_version = %q{1.3.7}
|
40
|
-
s.summary = %q{Simple tools for AR + Rails 3 to help make managing your content easy}
|
41
|
-
s.test_files = [
|
42
|
-
"test/helper.rb",
|
43
|
-
"test/test_almost-happy.rb"
|
44
|
-
]
|
5
|
+
s.name = "almost-happy"
|
6
|
+
s.summary = %Q{Simple tools for AR + Rails 3 to help make managing your content easy}
|
7
|
+
s.description = %Q{Helpers, convertors etc for Rails 3 to make page / post models for simple cases simple}
|
8
|
+
s.email = "sutto@sutto.net"
|
9
|
+
s.homepage = "http://github.com/Sutto/almost-happy"
|
10
|
+
s.authors = ["Darcy Laycock"]
|
11
|
+
s.version = AlmostHappy::VERSION.dup
|
45
12
|
|
46
|
-
|
47
|
-
|
48
|
-
|
13
|
+
s.files = `git ls-files`.split($\)
|
14
|
+
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
15
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
16
|
+
s.require_paths = ["lib"]
|
49
17
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
s.add_dependency(%q<activerecord>, [">= 3.0.0.beta3"])
|
59
|
-
s.add_dependency(%q<RedCloth>, [">= 0"])
|
60
|
-
s.add_dependency(%q<rdiscount>, [">= 0"])
|
61
|
-
s.add_dependency(%q<nokogiri>, [">= 0"])
|
62
|
-
s.add_dependency(%q<open4>, [">= 0"])
|
63
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
64
|
-
end
|
65
|
-
else
|
66
|
-
s.add_dependency(%q<activerecord>, [">= 3.0.0.beta3"])
|
67
|
-
s.add_dependency(%q<RedCloth>, [">= 0"])
|
68
|
-
s.add_dependency(%q<rdiscount>, [">= 0"])
|
69
|
-
s.add_dependency(%q<nokogiri>, [">= 0"])
|
70
|
-
s.add_dependency(%q<open4>, [">= 0"])
|
71
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
72
|
-
end
|
73
|
-
end
|
18
|
+
s.add_dependency "activerecord", "~> 3.0"
|
19
|
+
s.add_dependency "RedCloth"
|
20
|
+
s.add_dependency "rdiscount"
|
21
|
+
s.add_dependency "nokogiri"
|
22
|
+
s.add_dependency "open4" # For albino
|
23
|
+
s.add_development_dependency "shoulda", ">= 0"
|
24
|
+
s.add_development_dependency 'sqlite3'
|
25
|
+
s.add_development_dependency 'reversible_data'
|
74
26
|
|
27
|
+
end
|
data/lib/almost_happy.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class AlmostHappy::TestActiveRecordMixin < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context 'adding class methods' do
|
6
|
+
|
7
|
+
should 'add the is_convertable method' do
|
8
|
+
assert ActiveRecord::Base.respond_to?(:is_convertable)
|
9
|
+
end
|
10
|
+
|
11
|
+
should 'add the is_publishable method' do
|
12
|
+
assert ActiveRecord::Base.respond_to?(:is_publishable)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
should 'automatically add itself to activerecord' do
|
18
|
+
assert(ActiveRecord::Base < AlmostHappy::ActiveRecordMixin, 'AR::Base has the mixin')
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'helper'
|
2
2
|
|
3
|
-
class
|
3
|
+
class AlmostHappy::TestConvertor < Test::Unit::TestCase
|
4
4
|
should "probably rename this file and start testing for real" do
|
5
5
|
flunk "hey buddy, you should probably rename this file and start testing for real"
|
6
6
|
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class AlmostHappy::TestScopeable < Test::Unit::TestCase
|
4
|
+
with_tables :publishable do
|
5
|
+
|
6
|
+
should 'by default not be included' do
|
7
|
+
assert !(Publishable < AlmostHappy::Scopeable)
|
8
|
+
end
|
9
|
+
|
10
|
+
should 'be added by is_publishable' do
|
11
|
+
Publishable.is_publishable
|
12
|
+
assert Publishable < AlmostHappy::Scopeable
|
13
|
+
end
|
14
|
+
|
15
|
+
context 'with a publishable model' do
|
16
|
+
|
17
|
+
setup { Publishable.is_publishable }
|
18
|
+
|
19
|
+
should 'add a published relationship method' do
|
20
|
+
assert Publishable.respond_to?(:published)
|
21
|
+
end
|
22
|
+
|
23
|
+
should 'add a unpublished relationship method' do
|
24
|
+
assert Publishable.respond_to?(:unpublished)
|
25
|
+
end
|
26
|
+
|
27
|
+
should 'add a ordered relationship method' do
|
28
|
+
assert Publishable.respond_to?(:ordered)
|
29
|
+
end
|
30
|
+
|
31
|
+
should 'add a ordered_for_preview relationship method' do
|
32
|
+
assert Publishable.respond_to?(:ordered_for_preview)
|
33
|
+
end
|
34
|
+
|
35
|
+
should 'return a relationship from published' do
|
36
|
+
assert Publishable.published.is_a?(ActiveRecord::Relation)
|
37
|
+
end
|
38
|
+
|
39
|
+
should 'return a relationship from unpublished' do
|
40
|
+
assert Publishable.unpublished.is_a?(ActiveRecord::Relation)
|
41
|
+
end
|
42
|
+
|
43
|
+
should 'return a relationship from ordered' do
|
44
|
+
assert Publishable.ordered.is_a?(ActiveRecord::Relation)
|
45
|
+
end
|
46
|
+
|
47
|
+
should 'return a relationship from ordered_for_preview' do
|
48
|
+
assert Publishable.ordered_for_preview.is_a?(ActiveRecord::Relation)
|
49
|
+
end
|
50
|
+
|
51
|
+
context 'with published items do' do
|
52
|
+
|
53
|
+
setup do
|
54
|
+
@published_a = Publishable.create!(:published_at => 3.weeks.ago)
|
55
|
+
@published_b = Publishable.create!(:published_at => 1.day.ago)
|
56
|
+
@unpublished_a = Publishable.create!(:published_at => 3.weeks.from_now)
|
57
|
+
@unpublished_b = Publishable.create!(:published_at => 2.hours.from_now)
|
58
|
+
@unpublished_c = Publishable.create!(:published_at => nil)
|
59
|
+
end
|
60
|
+
|
61
|
+
should 'return the correct items for published' do
|
62
|
+
assert_same_elements [@published_a, @published_b], Publishable.published.all
|
63
|
+
end
|
64
|
+
|
65
|
+
should 'return the correct items for unpublished' do
|
66
|
+
assert_same_elements [@unpublished_a, @unpublished_b, @unpublished_c], Publishable.unpublished.all
|
67
|
+
end
|
68
|
+
|
69
|
+
should 'have the correct order for ordered' do
|
70
|
+
assert_equal [@unpublished_a, @unpublished_b, @published_b, @published_a, @unpublished_c], Publishable.ordered.all
|
71
|
+
end
|
72
|
+
|
73
|
+
should 'have the correct order for ordered_for_preview' do
|
74
|
+
assert_equal [@unpublished_c, @unpublished_a, @unpublished_b, @published_b, @published_a], Publishable.ordered_for_preview.all
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
82
|
+
end
|
data/test/helper.rb
CHANGED
@@ -1,10 +1,21 @@
|
|
1
|
+
$KCODE = 'UTF8'
|
2
|
+
|
1
3
|
require 'rubygems'
|
4
|
+
|
2
5
|
require 'test/unit'
|
3
6
|
require 'shoulda'
|
7
|
+
require 'rr'
|
8
|
+
require 'redgreen' if RUBY_VERSION < '1.9'
|
9
|
+
require 'ruby-debug' if ENV['DEBUG']
|
4
10
|
|
5
11
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
6
12
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
13
|
+
|
14
|
+
require 'active_record'
|
7
15
|
require 'almost-happy'
|
16
|
+
require 'model_definitions'
|
8
17
|
|
9
18
|
class Test::Unit::TestCase
|
19
|
+
include RR::Adapters::TestUnit
|
20
|
+
extend ReversibleData::ShouldaMacros
|
10
21
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'reversible_data'
|
2
|
+
|
3
|
+
ReversibleData.in_memory!
|
4
|
+
|
5
|
+
ReversibleData.add :publishable do |p|
|
6
|
+
p.datetime :published_at
|
7
|
+
end
|
8
|
+
|
9
|
+
ReversibleData.add :simple_convertable do |sc|
|
10
|
+
sc.text :description
|
11
|
+
sc.text :rendered_description
|
12
|
+
end
|
13
|
+
|
14
|
+
ReversibleData.add :simple_convertable_with_format do |sc|
|
15
|
+
sc.text :description
|
16
|
+
sc.text :rendered_description
|
17
|
+
sc.string :format
|
18
|
+
end
|
19
|
+
|
20
|
+
ReversibleData.add :multiple_convertable do |mc|
|
21
|
+
mc.text :description
|
22
|
+
mc.text :rendered_description
|
23
|
+
mc.text :profile
|
24
|
+
mc.text :rendered_profile
|
25
|
+
end
|
metadata
CHANGED
@@ -1,121 +1,155 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: almost-happy
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
- 1
|
10
|
-
version: 0.4.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Darcy Laycock
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-04-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: activerecord
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
hash: -1848230021
|
30
|
-
segments:
|
31
|
-
- 3
|
32
|
-
- 0
|
33
|
-
- 0
|
34
|
-
- beta3
|
35
|
-
version: 3.0.0.beta3
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.0'
|
36
22
|
type: :runtime
|
37
|
-
version_requirements: *id001
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: RedCloth
|
40
23
|
prerelease: false
|
41
|
-
|
42
|
-
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: RedCloth
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
50
38
|
type: :runtime
|
51
|
-
version_requirements: *id002
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
name: rdiscount
|
54
39
|
prerelease: false
|
55
|
-
|
56
|
-
none: false
|
57
|
-
requirements:
|
58
|
-
- -
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rdiscount
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
64
54
|
type: :runtime
|
65
|
-
version_requirements: *id003
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
|
-
name: nokogiri
|
68
55
|
prerelease: false
|
69
|
-
|
70
|
-
none: false
|
71
|
-
requirements:
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: nokogiri
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
78
70
|
type: :runtime
|
79
|
-
version_requirements: *id004
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: open4
|
82
71
|
prerelease: false
|
83
|
-
|
84
|
-
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
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: open4
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
92
86
|
type: :runtime
|
93
|
-
|
94
|
-
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
95
|
name: shoulda
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: sqlite3
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
96
119
|
prerelease: false
|
97
|
-
|
98
|
-
none: false
|
99
|
-
requirements:
|
100
|
-
- -
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: reversible_data
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
106
134
|
type: :development
|
107
|
-
|
108
|
-
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
description: Helpers, convertors etc for Rails 3 to make page / post models for simple
|
143
|
+
cases simple
|
109
144
|
email: sutto@sutto.net
|
110
145
|
executables: []
|
111
|
-
|
112
146
|
extensions: []
|
113
|
-
|
114
|
-
|
115
|
-
- LICENSE
|
116
|
-
- README.md
|
117
|
-
files:
|
147
|
+
extra_rdoc_files: []
|
148
|
+
files:
|
118
149
|
- .document
|
150
|
+
- .gitignore
|
151
|
+
- Gemfile
|
152
|
+
- Gemfile.lock
|
119
153
|
- LICENSE
|
120
154
|
- README.md
|
121
155
|
- Rakefile
|
@@ -129,42 +163,44 @@ files:
|
|
129
163
|
- lib/almost_happy/publishable.rb
|
130
164
|
- lib/almost_happy/scopeable.rb
|
131
165
|
- lib/vendor/albino.rb
|
166
|
+
- test/almost_happy/test_active_record_mixin.rb
|
167
|
+
- test/almost_happy/test_convertable.rb
|
168
|
+
- test/almost_happy/test_convertor.rb
|
169
|
+
- test/almost_happy/test_format_validator.rb
|
170
|
+
- test/almost_happy/test_publishable.rb
|
171
|
+
- test/almost_happy/test_scopeable.rb
|
132
172
|
- test/helper.rb
|
133
|
-
- test/
|
134
|
-
has_rdoc: true
|
173
|
+
- test/model_definitions.rb
|
135
174
|
homepage: http://github.com/Sutto/almost-happy
|
136
175
|
licenses: []
|
137
|
-
|
138
176
|
post_install_message:
|
139
177
|
rdoc_options: []
|
140
|
-
|
141
|
-
require_paths:
|
178
|
+
require_paths:
|
142
179
|
- lib
|
143
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
180
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
181
|
none: false
|
145
|
-
requirements:
|
146
|
-
- -
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
|
149
|
-
|
150
|
-
- 0
|
151
|
-
version: "0"
|
152
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - ! '>='
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '0'
|
186
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
187
|
none: false
|
154
|
-
requirements:
|
155
|
-
- -
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
|
158
|
-
segments:
|
159
|
-
- 0
|
160
|
-
version: "0"
|
188
|
+
requirements:
|
189
|
+
- - ! '>='
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '0'
|
161
192
|
requirements: []
|
162
|
-
|
163
193
|
rubyforge_project:
|
164
|
-
rubygems_version: 1.
|
194
|
+
rubygems_version: 1.8.21
|
165
195
|
signing_key:
|
166
196
|
specification_version: 3
|
167
197
|
summary: Simple tools for AR + Rails 3 to help make managing your content easy
|
168
|
-
test_files:
|
198
|
+
test_files:
|
199
|
+
- test/almost_happy/test_active_record_mixin.rb
|
200
|
+
- test/almost_happy/test_convertable.rb
|
201
|
+
- test/almost_happy/test_convertor.rb
|
202
|
+
- test/almost_happy/test_format_validator.rb
|
203
|
+
- test/almost_happy/test_publishable.rb
|
204
|
+
- test/almost_happy/test_scopeable.rb
|
169
205
|
- test/helper.rb
|
170
|
-
- test/
|
206
|
+
- test/model_definitions.rb
|