quick-sampler 0.0.1 → 0.0.2

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: 58a28eb8cda1b35a7cfde8b6c7c118e3a6373b17
4
- data.tar.gz: 655c8fb5860814fbf19f7fedf8573e2d310cbcc4
3
+ metadata.gz: acc71089a218aae55ed162a35d94c630b9571659
4
+ data.tar.gz: 6219973deeb91375bc3c152a7e00de76ea3dec9f
5
5
  SHA512:
6
- metadata.gz: a31df65d1b884a650988a248af0c324a5aad89df9dd5295e85b44b9a3a841ed6effde069088cf5368e846eba23b764ab19d163d3788d8ec1f2879eec903069c8
7
- data.tar.gz: 4e5ae84816f4e748c3c184775cb5de4e6c34e1cda267081f6d08d20201ec4a1c53811fff2d31ce1f7a55433ff1eb2a70a47452e28a7a7cad43541da51cd7ea0e
6
+ metadata.gz: 67759defc415a7a728977f459ebfcf9e7184d7e15ebcb14bdeb185158f9d1784d1350c7919d8062243cfa3e161252fb68ea1d98d5ebde895a845bf65c2464e23
7
+ data.tar.gz: d84713b80971bd0a80d6b31f742a3269bb3235e6c3ba05f5e2142612949d552db098a16c3129603af7513493acfdd121f563d69e205fe243472d56abec8be97a
data/.travis.yml CHANGED
@@ -1,3 +1,4 @@
1
1
  language: ruby
2
+ cache: bundler
2
3
  rvm:
3
4
  - 2.1.2
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in quick-sampler.gemspec
4
3
  gemspec
data/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Composable samplers of data: describe your randomness and watch it blend.
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/quick-sampler.svg)](http://badge.fury.io/rb/quick-sampler)
6
+ [![Build Status](https://travis-ci.org/praktijkindex/quick-sampler.svg?branch=master)](https://travis-ci.org/praktijkindex/quick-sampler)
7
+
5
8
  Quick Sampler is DSL for describing and sampling random data influenced by
6
9
  Haskell/Erlang's [QuickCheck][1] generators by Koen Claessen and John Hughes,
7
10
  [rantly][2] gem by Howard Yeh, [theft][3] gem by Shawn Anderson, Jessica Kerr's
@@ -15,8 +15,6 @@ module Quick
15
15
  # end
16
16
  module DSL::SimpleValues
17
17
 
18
- # @!volatile
19
- #
20
18
  # Degenerate constant sampler. Will probably be superseeded by
21
19
  # a cleaner smarter syntax as I get a better hang of it.
22
20
  #
@@ -1,5 +1,5 @@
1
1
  module Quick
2
2
  module Sampler
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -18,11 +18,13 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "bundler", "~> 1.7"
21
+ spec.required_ruby_version = "~> 2.1"
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.6"
22
24
  spec.add_development_dependency "rake", "~> 10.4"
23
25
  spec.add_development_dependency "rspec", "~> 3.2"
24
- spec.add_development_dependency "yard"
25
- spec.add_development_dependency "redcarpet"
26
+ spec.add_development_dependency "yard", "~> 0.8.7"
27
+ spec.add_development_dependency "redcarpet", "~> 3.2"
26
28
 
27
- spec.add_dependency "activesupport"
29
+ spec.add_runtime_dependency "activesupport", "~> 4.2"
28
30
  end
@@ -0,0 +1,9 @@
1
+ describe Quick::Sampler::DSL do
2
+ let(:dsl) { Quick::Sampler::DSL.new }
3
+ it { is_expected.to have_method :const }
4
+
5
+ describe "#const" do
6
+ subject(:samples) { dsl.const(Math::PI).first(5) }
7
+ it { is_expected.to all be == Math::PI }
8
+ end
9
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quick-sampler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Baguinski
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '1.6'
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
- version: '1.7'
26
+ version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -56,44 +56,44 @@ dependencies:
56
56
  name: yard
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.8.7
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.8.7
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: redcarpet
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '3.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '3.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activesupport
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '4.2'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '4.2'
97
97
  description: Describe randomness and watch it blend
98
98
  email:
99
99
  - abaguinski@depraktijkindex.nl
@@ -126,6 +126,7 @@ files:
126
126
  - spec/quick/sampler/compile_spec.rb
127
127
  - spec/quick/sampler/dsl/list_like_spec.rb
128
128
  - spec/quick/sampler/dsl/send_to_spec.rb
129
+ - spec/quick/sampler/dsl/simple_values_spec.rb
129
130
  - spec/spec_helper.rb
130
131
  homepage: https://github.com/praktijkindex/quick-sampler
131
132
  licenses:
@@ -137,9 +138,9 @@ require_paths:
137
138
  - lib
138
139
  required_ruby_version: !ruby/object:Gem::Requirement
139
140
  requirements:
140
- - - ">="
141
+ - - "~>"
141
142
  - !ruby/object:Gem::Version
142
- version: '0'
143
+ version: '2.1'
143
144
  required_rubygems_version: !ruby/object:Gem::Requirement
144
145
  requirements:
145
146
  - - ">="
@@ -155,5 +156,6 @@ test_files:
155
156
  - spec/quick/sampler/compile_spec.rb
156
157
  - spec/quick/sampler/dsl/list_like_spec.rb
157
158
  - spec/quick/sampler/dsl/send_to_spec.rb
159
+ - spec/quick/sampler/dsl/simple_values_spec.rb
158
160
  - spec/spec_helper.rb
159
161
  has_rdoc: