crystalline 0.0.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ 1.0.0:
2
+ Basic functionality -- include 'crystalline/spec' in your spec_helper, include
3
+ 'crystalline/rake' in your rake file. Receive usefule stuff.
4
+
5
+
@@ -0,0 +1,2 @@
1
+ RVM_STRING="rvm use rbx-head@lib --create --verbose"
2
+ [ -e './.rvmrc_local' ] && source './.rvmrc_local' || $RVM_STRING
@@ -1,5 +1,3 @@
1
1
  require "crystalline/version"
2
2
 
3
- module Crystalline
4
- # Your code goes here...
5
- end
3
+ require 'pry'
@@ -0,0 +1,15 @@
1
+ require 'crystalline/rake/flay'
2
+ require 'crystalline/rake/flog'
3
+ require 'crystalline/rake/mutant'
4
+ require 'crystalline/rake/spec'
5
+
6
+ require 'pry'
7
+
8
+ task :default => :spec
9
+
10
+ desc 'run flog, flay metrics'
11
+ task :metrics => [:flog, :flay]
12
+
13
+ desc 'run specs, the mutant specs, then metrics'
14
+ task :all => [:spec, :mutant, :metrics]
15
+
@@ -0,0 +1,6 @@
1
+ desc 'run flay metrics'
2
+ task :flay do
3
+ puts "#### FLAY ####"
4
+ system 'flay lib/*'
5
+ puts "##############"
6
+ end
@@ -0,0 +1,6 @@
1
+ desc 'run flog metrics'
2
+ task :flog do
3
+ puts "#### FLOG ####"
4
+ system 'flog lib/*'
5
+ puts "##############"
6
+ end
@@ -0,0 +1,6 @@
1
+ desc 'run mutant specs'
2
+ task :mutant, [:gem_name, :root_module] do |_, args|
3
+ puts "#### MUTANT TESTING ####"
4
+ system "mutant -I lib -r #{args[:gem_name]} --rspec-full #{args[:root_module]}"
5
+ puts "########################"
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'rspec/core/rake_task'
2
+
3
+ desc 'run specs'
4
+ RSpec::Core::RakeTask.new do |task|
5
+ task.rspec_opts = ["-c", "-f progress"]
6
+ end
@@ -0,0 +1,8 @@
1
+ require 'pry'
2
+ require 'rspec-spies'
3
+ require 'coveralls'
4
+
5
+ require 'crystalline/spec/rspec'
6
+ require 'crystalline/spec/mock'
7
+
8
+ Coveralls.wear!
@@ -0,0 +1,13 @@
1
+ module Crystalline
2
+ module DSL
3
+ module Macros
4
+ def the(sym, &block)
5
+ context sym do
6
+ subject { if sym.is_a? Class then sym else send sym end }
7
+ it &block
8
+ end
9
+ end
10
+ alias the_class the
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ class RSpec::Mocks::Mock
2
+ def inspect
3
+ "double(#{@name.inspect})"
4
+ end
5
+ end
@@ -0,0 +1,13 @@
1
+ require 'crystalline/spec/macros'
2
+
3
+ def self.install!
4
+ RSpec.configure do |config|
5
+ config.before do
6
+ allow_message_expectations_on_nil
7
+ end
8
+
9
+ config.treat_symbols_as_metadata_keys_with_true_values = true
10
+
11
+ config.extend(Crystalline::Spec::Macros)
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Crystalline
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crystalline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -148,12 +148,23 @@ extensions: []
148
148
  extra_rdoc_files: []
149
149
  files:
150
150
  - .gitignore
151
+ - CHANGELOG
151
152
  - Gemfile
152
153
  - LICENSE.txt
153
154
  - README.md
154
155
  - Rakefile
155
156
  - crystalline.gemspec
157
+ - lib/.rvmrc
156
158
  - lib/crystalline.rb
159
+ - lib/crystalline/rake.rb
160
+ - lib/crystalline/rake/flay.rb
161
+ - lib/crystalline/rake/flog.rb
162
+ - lib/crystalline/rake/mutant.rb
163
+ - lib/crystalline/rake/spec.rb
164
+ - lib/crystalline/spec.rb
165
+ - lib/crystalline/spec/macros.rb
166
+ - lib/crystalline/spec/mock.rb
167
+ - lib/crystalline/spec/rspec.rb
157
168
  - lib/crystalline/version.rb
158
169
  homepage: ''
159
170
  licenses: []
@@ -169,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
169
180
  version: '0'
170
181
  segments:
171
182
  - 0
172
- hash: 4218205098342966591
183
+ hash: 2333299918432768169
173
184
  required_rubygems_version: !ruby/object:Gem::Requirement
174
185
  none: false
175
186
  requirements:
@@ -178,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
189
  version: '0'
179
190
  segments:
180
191
  - 0
181
- hash: 4218205098342966591
192
+ hash: 2333299918432768169
182
193
  requirements: []
183
194
  rubyforge_project:
184
195
  rubygems_version: 1.8.24