building-blocks 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -42
- data/VERSION +1 -1
- data/lib/building_blocks/building_blocks.rb +4 -4
- metadata +9 -37
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -96
data/Rakefile
CHANGED
@@ -1,46 +1,9 @@
|
|
1
|
-
|
2
|
-
# Rspec 1.3.0
|
3
|
-
require 'spec/rake/spectask'
|
4
|
-
|
5
|
-
desc 'Default: run specs'
|
6
|
-
task :default => :spec
|
7
|
-
Spec::Rake::SpecTask.new do |t|
|
8
|
-
t.spec_files = FileList["spec/**/*_spec.rb"]
|
9
|
-
end
|
1
|
+
require 'rspec/core/rake_task'
|
10
2
|
|
11
|
-
|
12
|
-
t.spec_files = FileList["spec/**/*_spec.rb"]
|
13
|
-
t.rcov = true
|
14
|
-
t.rcov_opts = ['--exclude', 'spec']
|
15
|
-
end
|
16
|
-
|
17
|
-
rescue LoadError
|
18
|
-
# Rspec 2.0
|
19
|
-
require 'rspec/core/rake_task'
|
3
|
+
RSpec::Core::RakeTask.new('spec')
|
20
4
|
|
21
|
-
|
22
|
-
|
23
|
-
Rspec::Core::RakeTask.new do |t|
|
24
|
-
t.pattern = "spec/**/*_spec.rb"
|
25
|
-
end
|
26
|
-
|
27
|
-
Rspec::Core::RakeTask.new('rcov') do |t|
|
28
|
-
t.pattern = "spec/**/*_spec.rb"
|
29
|
-
t.rcov = true
|
30
|
-
t.rcov_opts = ['--exclude', 'spec']
|
31
|
-
end
|
32
|
-
|
33
|
-
rescue LoadError
|
34
|
-
puts "Rspec not available. Install it with: gem install rspec"
|
35
|
-
end
|
36
|
-
|
37
|
-
namespace 'rails2.3' do
|
38
|
-
task :spec do
|
39
|
-
gemfile = File.join(File.dirname(__FILE__), 'lib', 'has_relationship', 'compatibility', 'Gemfile')
|
40
|
-
ENV['BUNDLE_GEMFILE'] = gemfile
|
41
|
-
Rake::Task['spec'].invoke
|
42
|
-
end
|
43
|
-
end
|
5
|
+
# If you want to make this the default task
|
6
|
+
task :default => :spec
|
44
7
|
|
45
8
|
begin
|
46
9
|
require 'jeweler'
|
@@ -51,7 +14,7 @@ begin
|
|
51
14
|
gemspec.email = "hunterae@gmail.com"
|
52
15
|
gemspec.homepage = "http://github.com/hunterae/building-blocks"
|
53
16
|
gemspec.authors = ["Andrew Hunter"]
|
54
|
-
gemspec.files = FileList["[A-Z]*", "{lib,spec,rails}/**/*"] - FileList["**/*.log"]
|
17
|
+
gemspec.files = FileList["[A-Z]*", "{lib,spec,rails}/**/*"] - FileList["**/*.log", "Gemfile", "Gemfile.lock"]
|
55
18
|
end
|
56
19
|
Jeweler::GemcutterTasks.new
|
57
20
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
@@ -73,9 +73,9 @@ module BuildingBlocks
|
|
73
73
|
block_container.block = block
|
74
74
|
|
75
75
|
if view.blocks.blocks[name].nil?
|
76
|
-
|
76
|
+
blocks[name] = [block_container]
|
77
77
|
else
|
78
|
-
|
78
|
+
blocks[name] << block_container
|
79
79
|
end
|
80
80
|
|
81
81
|
nil
|
@@ -91,9 +91,9 @@ module BuildingBlocks
|
|
91
91
|
block_container.block = block
|
92
92
|
|
93
93
|
if view.blocks.blocks[name].nil?
|
94
|
-
|
94
|
+
blocks[name] = [block_container]
|
95
95
|
else
|
96
|
-
|
96
|
+
blocks[name] << block_container
|
97
97
|
end
|
98
98
|
|
99
99
|
nil
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: building-blocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrew Hunter
|
@@ -25,17 +25,19 @@ dependencies:
|
|
25
25
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
26
|
none: false
|
27
27
|
requirements:
|
28
|
-
- -
|
28
|
+
- - ~>
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
30
|
+
hash: 7
|
31
31
|
segments:
|
32
|
+
- 3
|
32
33
|
- 0
|
33
|
-
|
34
|
+
- 0
|
35
|
+
version: 3.0.0
|
34
36
|
requirement: *id001
|
35
37
|
- !ruby/object:Gem::Dependency
|
36
38
|
prerelease: false
|
37
39
|
type: :runtime
|
38
|
-
name:
|
40
|
+
name: building-blocks
|
39
41
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
42
|
none: false
|
41
43
|
requirements:
|
@@ -46,34 +48,6 @@ dependencies:
|
|
46
48
|
- 0
|
47
49
|
version: "0"
|
48
50
|
requirement: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
prerelease: false
|
51
|
-
type: :runtime
|
52
|
-
name: jeweler
|
53
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
55
|
-
requirements:
|
56
|
-
- - ">="
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
hash: 3
|
59
|
-
segments:
|
60
|
-
- 0
|
61
|
-
version: "0"
|
62
|
-
requirement: *id003
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
prerelease: false
|
65
|
-
type: :runtime
|
66
|
-
name: rcov
|
67
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
|
-
requirements:
|
70
|
-
- - ">="
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
hash: 3
|
73
|
-
segments:
|
74
|
-
- 0
|
75
|
-
version: "0"
|
76
|
-
requirement: *id004
|
77
51
|
description: ""
|
78
52
|
email: hunterae@gmail.com
|
79
53
|
executables: []
|
@@ -83,8 +57,6 @@ extensions: []
|
|
83
57
|
extra_rdoc_files:
|
84
58
|
- README.rdoc
|
85
59
|
files:
|
86
|
-
- Gemfile
|
87
|
-
- Gemfile.lock
|
88
60
|
- README.rdoc
|
89
61
|
- Rakefile
|
90
62
|
- VERSION
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,96 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
abstract (1.0.0)
|
5
|
-
actionmailer (3.0.0.beta3)
|
6
|
-
actionpack (= 3.0.0.beta3)
|
7
|
-
mail (~> 2.2.0)
|
8
|
-
text-format (~> 1.0.0)
|
9
|
-
actionpack (3.0.0.beta3)
|
10
|
-
activemodel (= 3.0.0.beta3)
|
11
|
-
activesupport (= 3.0.0.beta3)
|
12
|
-
erubis (~> 2.6.5)
|
13
|
-
rack (~> 1.1.0)
|
14
|
-
rack-mount (~> 0.6.0)
|
15
|
-
rack-test (~> 0.5.0)
|
16
|
-
activemodel (3.0.0.beta3)
|
17
|
-
activesupport (= 3.0.0.beta3)
|
18
|
-
activerecord (3.0.0.beta3)
|
19
|
-
activemodel (= 3.0.0.beta3)
|
20
|
-
activesupport (= 3.0.0.beta3)
|
21
|
-
arel (~> 0.3.3)
|
22
|
-
activeresource (3.0.0.beta3)
|
23
|
-
activemodel (= 3.0.0.beta3)
|
24
|
-
activesupport (= 3.0.0.beta3)
|
25
|
-
activesupport (3.0.0.beta3)
|
26
|
-
builder (~> 2.1.2)
|
27
|
-
i18n (~> 0.3.6)
|
28
|
-
memcache-client (>= 1.7.5)
|
29
|
-
tzinfo (~> 0.3.16)
|
30
|
-
arel (0.3.3)
|
31
|
-
activesupport (>= 3.0.0.beta)
|
32
|
-
builder (2.1.2)
|
33
|
-
erubis (2.6.6)
|
34
|
-
abstract (>= 1.0.0)
|
35
|
-
git (1.2.5)
|
36
|
-
i18n (0.3.7)
|
37
|
-
jeweler (1.6.0)
|
38
|
-
bundler (~> 1.0.0)
|
39
|
-
git (>= 1.2.5)
|
40
|
-
rake
|
41
|
-
mail (2.2.7)
|
42
|
-
activesupport (>= 2.3.6)
|
43
|
-
mime-types
|
44
|
-
treetop (>= 1.4.5)
|
45
|
-
memcache-client (1.8.5)
|
46
|
-
mime-types (1.16)
|
47
|
-
mysql (2.8.1)
|
48
|
-
polyglot (0.3.1)
|
49
|
-
rack (1.1.2)
|
50
|
-
rack-mount (0.6.14)
|
51
|
-
rack (>= 1.0.0)
|
52
|
-
rack-test (0.5.7)
|
53
|
-
rack (>= 1.0)
|
54
|
-
rails (3.0.0.beta3)
|
55
|
-
actionmailer (= 3.0.0.beta3)
|
56
|
-
actionpack (= 3.0.0.beta3)
|
57
|
-
activerecord (= 3.0.0.beta3)
|
58
|
-
activeresource (= 3.0.0.beta3)
|
59
|
-
activesupport (= 3.0.0.beta3)
|
60
|
-
bundler (>= 0.9.19)
|
61
|
-
railties (= 3.0.0.beta3)
|
62
|
-
railties (3.0.0.beta3)
|
63
|
-
actionpack (= 3.0.0.beta3)
|
64
|
-
activesupport (= 3.0.0.beta3)
|
65
|
-
rake (>= 0.8.3)
|
66
|
-
thor (~> 0.13.4)
|
67
|
-
rake (0.8.7)
|
68
|
-
rcov (0.9.9)
|
69
|
-
rspec (2.0.0.beta.8)
|
70
|
-
rspec-core (= 2.0.0.beta.8)
|
71
|
-
rspec-expectations (= 2.0.0.beta.8)
|
72
|
-
rspec-mocks (= 2.0.0.beta.8)
|
73
|
-
rspec-core (2.0.0.beta.8)
|
74
|
-
rspec-expectations (2.0.0.beta.8)
|
75
|
-
rspec-mocks (2.0.0.beta.8)
|
76
|
-
sqlite3 (1.3.3)
|
77
|
-
sqlite3-ruby (1.3.3)
|
78
|
-
sqlite3 (>= 1.3.3)
|
79
|
-
text-format (1.0.0)
|
80
|
-
text-hyphen (~> 1.0.0)
|
81
|
-
text-hyphen (1.0.2)
|
82
|
-
thor (0.13.8)
|
83
|
-
treetop (1.4.9)
|
84
|
-
polyglot (>= 0.3.1)
|
85
|
-
tzinfo (0.3.27)
|
86
|
-
|
87
|
-
PLATFORMS
|
88
|
-
ruby
|
89
|
-
|
90
|
-
DEPENDENCIES
|
91
|
-
jeweler
|
92
|
-
mysql
|
93
|
-
rails (= 3.0.0.beta3)
|
94
|
-
rcov
|
95
|
-
rspec (= 2.0.0.beta.8)
|
96
|
-
sqlite3-ruby
|