progne_tapera-rspec 0.2 → 0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df528bff47c45a3c68d221180ce546ded17f16b5
4
- data.tar.gz: bbecaa73f186f6958793ae0cc5c756fb19688406
3
+ metadata.gz: 703d60e29272d8003351084b8aa39f54f10ff960
4
+ data.tar.gz: 6e355a3424b7abc289df22646c162eef4b1eb4d5
5
5
  SHA512:
6
- metadata.gz: b9c17ea0664fd4c3b98f015d21628ef8395c64a15312ea1c5c0d0ffe6bd277d153f9d6b12c35cb4df5e466975a58110027d2a2778da16f01cc616b8396bc4127
7
- data.tar.gz: 53d73a19d36e997b839e00b1c7e27da5b64f7c6002738a1692d894e52838821cf4858972bb8ba0d75d8a2b7716c0f9271c0955795fec7c94f0dc712cb1c8b699
6
+ metadata.gz: eb1953f468fd864ea4b2294f596129d1375ac880fe046df5578c51500473460a00ee34aae2a0f6d31a0aae9f629eace1d91a1230d4e2c2ff3ff42cbb2d152e37
7
+ data.tar.gz: 41dbfe91403e8ab836925d779e3500485547f239b27cee5d426ac9e1c3584a7fc9248ab7ab0b7506137c10636dc0a6892c52846af767d8caabc6f889b1bc18b2
data/CHANGELOG.md CHANGED
@@ -5,3 +5,6 @@
5
5
 
6
6
  ## v0.2
7
7
  1. Code Attribute shared examples
8
+
9
+ ## v0.3
10
+ 1. Improve the Progne Tapera RSpec module to require the Enum Code shared examples & the Code Attribute shared examples automatically
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- progne_tapera-rspec (0.1)
4
+ progne_tapera-rspec (0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
- # ProgneTapera::Rspec
1
+ # Progne Tapera RSpec 枚举 RSpec 库
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/progne_tapera/rspec`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ [![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
4
+ [![Gem Version](https://badge.fury.io/rb/progne_tapera-rspec.svg)](https://badge.fury.io/rb/progne_tapera-rspec)
4
5
 
5
- TODO: Delete this and the text above, and describe your gem
6
+ Progne Tapera RSpec is a RSpec-based Shared Example for the Progne Tapera-based enum implementation. Progne Tapera RSpec 是为 Progne Tapera 设计的基于 RSpec 的共享测试用例。
6
7
 
7
8
  ## Installation
8
9
 
@@ -22,14 +23,8 @@ Or install it yourself as:
22
23
 
23
24
  ## Usage
24
25
 
25
- Add the following line into the ``spec/rails_helper.rb`` file:
26
-
27
- ```ruby
28
- require 'progne_tapera/rspec/enum_code_shared_examples'
29
- require 'progne_tapera/rspec/code_attribute_shared_examples'
30
- ```
31
-
32
26
  Create the RSpec examples for your enum code (assume the enum code is Gender):
27
+
33
28
  ```ruby
34
29
  require 'rails_helper'
35
30
 
@@ -50,6 +45,7 @@ end
50
45
  ```
51
46
 
52
47
  Create the RSpec examples for your model which has the #gender_code attribute (assume the model is Person):
48
+
53
49
  ```ruby
54
50
  # person.rb
55
51
  class Person < ApplicationRecord
data/ROADMAP.md CHANGED
@@ -5,3 +5,6 @@
5
5
 
6
6
  ## v0.2
7
7
  1. Code Attribute shared examples
8
+
9
+ ## v0.3
10
+ 1. Improve the Progne Tapera RSpec module to require the Enum Code shared examples & the Code Attribute shared examples automatically
@@ -1,5 +1,5 @@
1
1
  module ProgneTapera
2
2
  module RSpec
3
- VERSION = "0.2"
3
+ VERSION = '0.3'
4
4
  end
5
5
  end
@@ -1,5 +1,8 @@
1
1
  require "progne_tapera/rspec/version"
2
2
 
3
+ require 'progne_tapera/rspec/enum_code_shared_examples'
4
+ require 'progne_tapera/rspec/code_attribute_shared_examples'
5
+
3
6
  module ProgneTapera
4
7
  module RSpec
5
8
  # Your code goes here...
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = [ 'Topbit Du' ]
10
10
  spec.email = [ 'topbit.du@gmail.com' ]
11
11
 
12
- spec.summary = %q{Progne Tapera RSpec 是为 Progne Tapera 设计的基于 RSpec 的共享测试用例。}
13
- spec.description = %q{Progne Tapera RSpec is a RSpec-based Shared Example for the Progne Tapera-based enum implementation. Progne Tapera RSpec 是为 Progne Tapera 设计的基于 RSpec 的共享测试用例。}
12
+ spec.summary = 'Progne Tapera RSpec 是为 Progne Tapera 设计的基于 RSpec 的共享测试用例。'
13
+ spec.description = 'Progne Tapera RSpec is a RSpec-based Shared Example for the Progne Tapera-based enum implementation. Progne Tapera RSpec 是为 Progne Tapera 设计的基于 RSpec 的共享测试用例。'
14
14
  spec.homepage = 'https://github.com/topbitdu/progne_tapera-rspec'
15
15
  spec.license = 'MIT'
16
16
 
@@ -23,12 +23,12 @@ Gem::Specification.new do |spec|
23
23
  #end
24
24
 
25
25
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
- spec.bindir = "exe"
26
+ spec.bindir = 'exe'
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = [ 'lib' ]
29
29
 
30
30
  spec.add_development_dependency 'bundler', '~> 1.12'
31
- spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency 'rake', "~> 10.0"
32
32
  spec.add_development_dependency "rspec", "~> 3.0"
33
33
 
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: progne_tapera-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-17 00:00:00.000000000 Z
11
+ date: 2016-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler