trenni-formatters 0.2.0 → 0.2.1

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 ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NGYwNzExYWY3NjEzOGI5MTlhYTY5NjdlMjkwZTZmZWY0NGNjM2I3Nw==
5
+ data.tar.gz: !binary |-
6
+ MTk3MmY0MDg4NjFjN2E1MDQwYTNlZGRmNWM2ODMxZDJmMzQ1NmMzYg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YmQ1NDA0Zjc1ZGYzZTIxNjYxYjA4YmNlOTUwMjg1NTBkOWJlZWY4NmQ4ZjIy
10
+ ZWFhYzhhZDA5YTY1OTUyZTc4ZmY4ZmJmNGUyOWYyYjU4YTI2ZWRkMzNjYTRk
11
+ YTYwZDliN2YzNmM0ODg4MzI3MDI4NWUxZWU2MjMxMzk0M2MyM2E=
12
+ data.tar.gz: !binary |-
13
+ YjcwZmM0OTY4YjczMTk5MjQ4NTdlNGRmZjU3MTE1ZmJlMzY1OTU1OGI2Zjhj
14
+ OGE2OTk2ZTI4NzRkNTdhMzkyMDZkODcwMTc5MTk3NDJmOWNkNjg3MDQ1MTE4
15
+ NDY2Yzg1OTMwMjkzMmMxMjZjZDcyNzYwMGVkZDY3YTEyY2RjNGU=
data/README.md CHANGED
@@ -31,7 +31,6 @@ a mapping corresponding to the objects type:
31
31
  formatter = Trenni::Formatters::Formatter.new
32
32
 
33
33
  formatter.for(String) do |value, options|
34
- count += 1
35
34
  "String: #{value}"
36
35
  end
37
36
 
@@ -51,7 +51,7 @@ module Trenni
51
51
  @formatter.title_for(options)
52
52
  end
53
53
 
54
- def item_attributes_for(options)
54
+ def option_attributes_for(options)
55
55
  return {
56
56
  :value => value_for(options),
57
57
  :selected => options[:selected],
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Trenni
22
22
  module Formatters
23
- VERSION = "0.2.0"
23
+ VERSION = "0.2.1"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trenni-formatters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Samuel Williams
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-26 00:00:00.000000000 Z
11
+ date: 2013-07-31 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: trenni
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -54,33 +51,26 @@ files:
54
51
  - trenni-formatters.gemspec
55
52
  homepage: https://github.com/ioquatix/trenni-formatters
56
53
  licenses: []
54
+ metadata: {}
57
55
  post_install_message:
58
56
  rdoc_options: []
59
57
  require_paths:
60
58
  - lib
61
59
  required_ruby_version: !ruby/object:Gem::Requirement
62
- none: false
63
60
  requirements:
64
61
  - - ! '>='
65
62
  - !ruby/object:Gem::Version
66
63
  version: '0'
67
- segments:
68
- - 0
69
- hash: 1188426076542162309
70
64
  required_rubygems_version: !ruby/object:Gem::Requirement
71
- none: false
72
65
  requirements:
73
66
  - - ! '>='
74
67
  - !ruby/object:Gem::Version
75
68
  version: '0'
76
- segments:
77
- - 0
78
- hash: 1188426076542162309
79
69
  requirements: []
80
70
  rubyforge_project:
81
- rubygems_version: 1.8.24
71
+ rubygems_version: 2.0.6
82
72
  signing_key:
83
- specification_version: 3
73
+ specification_version: 4
84
74
  summary: Formatters for Trenni, to assist with typical views and form based interfaces.
85
75
  test_files:
86
76
  - test/test_formatters.rb