intuition 0.0.1.alpha1 → 0.0.1.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/lib/intuition/report.rb +4 -0
- data/lib/intuition/sheet.rb +8 -1
- data/lib/intuition/version.rb +1 -1
- metadata +2 -2
- data/intuition-0.0.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 654f2b2fcd6f259881bc4f6c55e44ff481fc4866
|
4
|
+
data.tar.gz: 21abb8c1ffa7c77542ebadd240af4de32cc643db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02f4606c0bbef8fde530ef969f8ae281b79ee0538a2c8e0a8c158d1264af1b34a1d96517cbf47234ad41847d563321fb83a74d219eafa08d345bd8a8434ea0f2
|
7
|
+
data.tar.gz: a6eec088e4e8a09ab5e84e5df1f39ac8a3df91eeab6cab50805e109a88467c9c6e0448919fcdab93c2201b9b74a8f24a5268cc213f65c57adcdbe18f9426d940
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/lib/intuition/report.rb
CHANGED
data/lib/intuition/sheet.rb
CHANGED
@@ -6,6 +6,7 @@ module Intuition
|
|
6
6
|
|
7
7
|
def initialize(title)
|
8
8
|
@title = title
|
9
|
+
@conversions = Hash.new([])
|
9
10
|
end
|
10
11
|
|
11
12
|
def header(*value)
|
@@ -31,11 +32,17 @@ module Intuition
|
|
31
32
|
@table
|
32
33
|
end
|
33
34
|
|
35
|
+
def conversion(type, &block)
|
36
|
+
@conversions[type] ||= []
|
37
|
+
@conversions[type] << Proc.new(&block)
|
38
|
+
end
|
39
|
+
|
34
40
|
def full_table
|
35
41
|
[header] + table.rows
|
36
42
|
end
|
37
43
|
|
38
|
-
def run_conversions(
|
44
|
+
def run_conversions(type, args)
|
45
|
+
@conversions[type].each{|c| c.call(self, args) }
|
39
46
|
end
|
40
47
|
end
|
41
48
|
end
|
data/lib/intuition/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: intuition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.alpha2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Zhavoronkov
|
@@ -93,7 +93,6 @@ files:
|
|
93
93
|
- Guardfile
|
94
94
|
- README.md
|
95
95
|
- Rakefile
|
96
|
-
- intuition-0.0.0.gem
|
97
96
|
- intuition.gemspec
|
98
97
|
- lib/intuition.rb
|
99
98
|
- lib/intuition/report.rb
|
@@ -129,3 +128,4 @@ signing_key:
|
|
129
128
|
specification_version: 4
|
130
129
|
summary: Reporting
|
131
130
|
test_files: []
|
131
|
+
has_rdoc:
|
data/intuition-0.0.0.gem
DELETED
Binary file
|