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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7898dab89b946f512837b787aa9e3747d3035cf
4
- data.tar.gz: cbe430fe85d81ed0fd936437c8bb822395b3473e
3
+ metadata.gz: 654f2b2fcd6f259881bc4f6c55e44ff481fc4866
4
+ data.tar.gz: 21abb8c1ffa7c77542ebadd240af4de32cc643db
5
5
  SHA512:
6
- metadata.gz: ed3c6ff3af0c9c1c184c91530f92e241354d93f0830c0971abaf8e6e0e6107baf2b8f13ecdc59b445742c3de399246a32d7dda5a24f2d8ecdac5b7f287511264
7
- data.tar.gz: a14d52517177b0dbc3eb08a27c023653b0f21894a98f4b5185446c062b6673947143ab49b52dc9bd63810f05c73c16a6626d5b4804d6abead213879bfd893eb9
6
+ metadata.gz: 02f4606c0bbef8fde530ef969f8ae281b79ee0538a2c8e0a8c158d1264af1b34a1d96517cbf47234ad41847d563321fb83a74d219eafa08d345bd8a8434ea0f2
7
+ data.tar.gz: a6eec088e4e8a09ab5e84e5df1f39ac8a3df91eeab6cab50805e109a88467c9c6e0448919fcdab93c2201b9b74a8f24a5268cc213f65c57adcdbe18f9426d940
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- intuition (0.0.1.alpha1)
4
+ intuition (0.0.1.alpha2)
5
5
 
6
6
  GEM
7
- remote: http://rubygems.org/
7
+ remote: https://rubygems.org/
8
8
  specs:
9
9
  coderay (1.1.0)
10
10
  diff-lcs (1.2.5)
@@ -43,6 +43,10 @@ module Intuition
43
43
  @sheets << sheet
44
44
  end
45
45
 
46
+ def sort_sheets!
47
+ @sheets.sort_by!{|s| s.title }
48
+ end
49
+
46
50
  def method_missing(m, *args, &block)
47
51
  if context && context.respond_to?(m)
48
52
  context.send(m, *args, &block)
@@ -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(*args)
44
+ def run_conversions(type, args)
45
+ @conversions[type].each{|c| c.call(self, args) }
39
46
  end
40
47
  end
41
48
  end
@@ -1,3 +1,3 @@
1
1
  module Intuition
2
- VERSION = '0.0.1.alpha1'
2
+ VERSION = '0.0.1.alpha2'
3
3
  end
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.alpha1
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