goldmine 1.0.0 → 1.0.1

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: 657692c39740a0cf3b3c14851f886387616aa417
4
- data.tar.gz: 8a611460c2a55d95d8e2d406dca9b1e72ab50682
3
+ metadata.gz: 482001cf15140a91a9974768449d712eb6624be6
4
+ data.tar.gz: 6cda985ad920d0551ef2a6ab8233b10417984385
5
5
  SHA512:
6
- metadata.gz: c4821192a956bedf128bf1f9013712f12d11ff1b69e7b7decd14655998243bdc449775ae2ec0485f49f39cf7c1701134f46430c8b1e1ddc80e0f89848e6fff51
7
- data.tar.gz: 987848b18ed99c765401567937b8ffcc80411248f1e07ccb1d649a8c5a2ccce41b0139168c4f9133a1553475dee1b69b2c434f01e2b7c7c2936dc4b8995afd50
6
+ metadata.gz: dd45fedbbdf42e6735a1ae88454f5e739ab88e6d357df51b1d6737219bf44aa558ebfb660632ac0f47ae7398f462b3a0ff46926384dccc9c445132d0a4cfa931
7
+ data.tar.gz: d0abda41d61c2f16f37087ecf357369e3d5bc4a81ab72af37d93e281eb5f2414f223058586306129534841b2ef4af4042e4e2a37005a06d7f0cb62b02bcfffde
@@ -6,29 +6,36 @@ PATH
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- coderay (1.0.9)
10
- method_source (0.8.2)
11
- micro_test (0.4.0)
12
- os
13
- multi_json (1.8.2)
9
+ coveralls (0.7.2)
10
+ multi_json (~> 1.3)
11
+ rest-client (= 1.6.7)
12
+ simplecov (>= 0.7)
13
+ term-ansicolor (= 1.2.2)
14
+ thor (= 0.18.1)
15
+ docile (1.1.5)
16
+ mime-types (2.4.3)
17
+ multi_json (1.10.1)
14
18
  os (0.9.6)
15
- pry (0.9.12.2)
16
- coderay (~> 1.0.5)
17
- method_source (~> 0.8)
18
- slop (~> 3.4)
19
+ pry-test (0.5.4)
20
+ os
19
21
  rake (10.1.0)
20
- simplecov (0.7.1)
22
+ rest-client (1.6.7)
23
+ mime-types (>= 1.16)
24
+ simplecov (0.9.1)
25
+ docile (~> 1.1.0)
21
26
  multi_json (~> 1.0)
22
- simplecov-html (~> 0.7.1)
23
- simplecov-html (0.7.1)
24
- slop (3.4.6)
27
+ simplecov-html (~> 0.8.0)
28
+ simplecov-html (0.8.0)
29
+ term-ansicolor (1.2.2)
30
+ tins (~> 0.8)
31
+ thor (0.18.1)
32
+ tins (0.13.2)
25
33
 
26
34
  PLATFORMS
27
35
  ruby
28
36
 
29
37
  DEPENDENCIES
38
+ coveralls
30
39
  goldmine!
31
- micro_test
32
- pry
40
+ pry-test
33
41
  rake
34
- simplecov
data/README.md CHANGED
@@ -1,12 +1,13 @@
1
- # Goldmine
2
-
3
- [![Build Status](https://travis-ci.org/hopsoft/goldmine.png)](https://travis-ci.org/hopsoft/goldmine)
4
- [![Dependency Status](https://gemnasium.com/hopsoft/goldmine.png)](https://gemnasium.com/hopsoft/goldmine)
5
- [![Code Climate](https://codeclimate.com/github/hopsoft/goldmine.png)](https://codeclimate.com/github/hopsoft/goldmine)
1
+ [![Lines of Code](http://img.shields.io/badge/lines_of_code-73-brightgreen.svg?style=flat)](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
2
+ [![Code Status](http://img.shields.io/codeclimate/github/hopsoft/goldmine.svg?style=flat)](https://codeclimate.com/github/hopsoft/goldmine)
3
+ [![Dependency Status](http://img.shields.io/gemnasium/hopsoft/goldmine.svg?style=flat)](https://gemnasium.com/hopsoft/goldmine)
4
+ [![Build Status](http://img.shields.io/travis/hopsoft/goldmine.svg?style=flat)](https://travis-ci.org/hopsoft/goldmine)
5
+ [![Coverage Status](https://img.shields.io/coveralls/hopsoft/goldmine.svg?style=flat)](https://coveralls.io/r/hopsoft/goldmine?branch=master)
6
6
 
7
- ### Extract a wealth of information from Arrays & Hashes
7
+ # Goldmine
8
8
 
9
- Think of it as an enhanced `Enumerable#group_by`.
9
+ Extract a wealth of information from Arrays & Hashes.
10
+ Think of __Goldmine__ as `Enumerable#group_by` on steroids.
10
11
 
11
12
  ## Uses
12
13
 
@@ -16,17 +17,21 @@ Think of it as an enhanced `Enumerable#group_by`.
16
17
  - Prep for data visualization
17
18
  - Fact table creation
18
19
 
20
+ ---
21
+
19
22
  The [demo project](http://hopsoft.github.io/goldmine/) demonstrates some of Goldmine's uses.
20
23
 
24
+ ---
25
+
21
26
  ## Quick Start
22
27
 
23
28
  ```
24
29
  gem install goldmine
25
- irb
26
30
  ```
27
31
 
28
32
  ```ruby
29
33
  require "goldmine"
34
+
30
35
  list = [1,2,3,4,5,6,7,8,9]
31
36
  list = Goldmine::ArrayMiner.new(list)
32
37
  list.pivot { |i| i < 5 }
data/Rakefile CHANGED
@@ -3,5 +3,5 @@ require "bundler/gem_tasks"
3
3
  task :default => [:test]
4
4
 
5
5
  task :test do
6
- exec "bundle exec mt"
6
+ exec "bundle exec pry-test --disable-pry"
7
7
  end
@@ -1,5 +1,4 @@
1
1
  require "delegate"
2
- require "hash_miner"
3
2
 
4
3
  module Goldmine
5
4
  class HashMiner < SimpleDelegator
@@ -1,3 +1,3 @@
1
1
  module Goldmine
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -1,10 +1,9 @@
1
- require "micro_test"
2
- require "simplecov"
3
- SimpleCov.command_name "MicroTest"
4
- SimpleCov.start
1
+ require "pry-test"
2
+ require "coveralls"
3
+ Coveralls.wear!
5
4
  require File.expand_path("../../lib/goldmine", __FILE__)
6
5
 
7
- class TestGoldmine < MicroTest::Test
6
+ class TestGoldmine < PryTest::Test
8
7
 
9
8
  test "miner from array" do
10
9
  assert Goldmine.miner([]).is_a?(Goldmine::ArrayMiner)
metadata CHANGED
@@ -1,69 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goldmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-16 00:00:00.000000000 Z
11
+ date: 2014-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: micro_test
28
+ name: pry-test
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: simplecov
42
+ name: coveralls
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: pry
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
52
+ - - ">="
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
69
55
  description: Extract a wealth of information from Arrays & Hashes
@@ -73,14 +59,14 @@ executables: []
73
59
  extensions: []
74
60
  extra_rdoc_files: []
75
61
  files:
76
- - lib/goldmine/array_miner.rb
77
- - lib/goldmine/hash_miner.rb
78
- - lib/goldmine/version.rb
79
- - lib/goldmine.rb
80
62
  - Gemfile
81
63
  - Gemfile.lock
82
- - Rakefile
83
64
  - README.md
65
+ - Rakefile
66
+ - lib/goldmine.rb
67
+ - lib/goldmine/array_miner.rb
68
+ - lib/goldmine/hash_miner.rb
69
+ - lib/goldmine/version.rb
84
70
  - test/test_goldmine.rb
85
71
  homepage: https://github.com/hopsoft/goldmine
86
72
  licenses:
@@ -92,20 +78,19 @@ require_paths:
92
78
  - lib
93
79
  required_ruby_version: !ruby/object:Gem::Requirement
94
80
  requirements:
95
- - - '>='
81
+ - - ">="
96
82
  - !ruby/object:Gem::Version
97
83
  version: '0'
98
84
  required_rubygems_version: !ruby/object:Gem::Requirement
99
85
  requirements:
100
- - - '>='
86
+ - - ">="
101
87
  - !ruby/object:Gem::Version
102
88
  version: '0'
103
89
  requirements: []
104
90
  rubyforge_project:
105
- rubygems_version: 2.0.3
91
+ rubygems_version: 2.2.2
106
92
  signing_key:
107
93
  specification_version: 4
108
94
  summary: Extract a wealth of information from Arrays & Hashes
109
95
  test_files:
110
96
  - test/test_goldmine.rb
111
- has_rdoc: