yinum 1.5.0 → 1.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dda4cf785df447657db0d6ad49081d42b0afefab
4
- data.tar.gz: 41b6447ee2d5e2b064ad88ae557304f8a47cbcb8
3
+ metadata.gz: c53d2bc9cc46a16d364551c488ad35a119fb3c4d
4
+ data.tar.gz: 2ac8672e7d86efb82b2ca054c4ed4108b7359d51
5
5
  SHA512:
6
- metadata.gz: 32b324b333a9e06f40b78da8f7c3c307d7f26173033e126993ad18e686711c569bb0fc44a94b020ca4beee288489e0d5e6f708e6336b2755b0249088f75aaea3
7
- data.tar.gz: a5d23d7f8917e2ef7f4578a65cfef8b0d5ccc42e5f53607448d69e1dd5db6892532ebf969f39336c32029f436b7854d3118718ce9501d904f4821357e86c9a84
6
+ metadata.gz: 141e86d9162afd39eb923f927084325a4296f321c034572f410d2520c61779b57c97b2b063f28677a3fd779320c3e855be863073059f948a19e54980bef0b111
7
+ data.tar.gz: 2dc92e06508922e477382b08c844d102c621a4e2b1ddd6f862783398e553f936b85de1ac31fda44def0d41538ff274f6cd7743324528ca5887c6d92da96193ad
data/Gemfile CHANGED
@@ -1,5 +1,4 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- # Specify your gem's dependencies in commod.gemspec
3
+ # Specify your gem's dependencies in yinum.gemspec
4
4
  gemspec
5
- gem 'rspec'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yinum (1.5.0)
4
+ yinum (1.6.0)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -18,7 +18,7 @@ module Enum::Helpers::EnumColumn
18
18
  if options[:scoped]
19
19
  # generating scopes and questioning methods
20
20
  e.by_name.each do |n, ev|
21
- scope n, where(attr => ev)
21
+ scope n, -> { where(attr => ev) }
22
22
  end
23
23
  end
24
24
 
@@ -28,8 +28,8 @@ class UsesEnumColumn < Hash # to allow setting 'attributes'
28
28
  { :where => attributes }
29
29
  end
30
30
  attr_reader :scopes
31
- def scope(*attributes)
32
- @scopes << attributes
31
+ def scope(name, value)
32
+ @scopes << [name, value.call]
33
33
  end
34
34
 
35
35
  end
data/yinum.gemspec CHANGED
@@ -1,14 +1,16 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
+ require "enum/version"
3
4
 
4
5
  Gem::Specification.new do |s|
5
6
  s.name = "yinum"
6
- s.version = "1.5.0"
7
+ s.version = Enum::VERSION
7
8
  s.authors = ["Oded Niv"]
8
9
  s.email = ["oded.niv@gmail.com"]
9
10
  s.homepage = "https://github.com/toplex/enum"
10
11
  s.summary = %q{Enum implementation}
11
12
  s.description = %q{Yummy implementation of enum that gives integer values with a special wrapping.}
13
+ s.license = 'UNLICENSE'
12
14
 
13
15
  s.rubyforge_project = "yinum"
14
16
 
@@ -16,4 +18,6 @@ Gem::Specification.new do |s|
16
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
20
  s.require_paths = ["lib"]
21
+
22
+ s.add_development_dependency 'rspec'
19
23
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yinum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Niv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-29 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2013-11-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description: Yummy implementation of enum that gives integer values with a special
14
28
  wrapping.
15
29
  email:
@@ -38,7 +52,8 @@ files:
38
52
  - spec/spec_helper.rb
39
53
  - yinum.gemspec
40
54
  homepage: https://github.com/toplex/enum
41
- licenses: []
55
+ licenses:
56
+ - UNLICENSE
42
57
  metadata: {}
43
58
  post_install_message:
44
59
  rdoc_options: []