protopack 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -90,8 +90,8 @@ names to items, if l10n is a concern: "widget-item.fr.yml", for example.
90
90
  Each *-item.yml contains at least three keys: "id", "type" and "attributes". Protopack calls #constantize
91
91
  on the "type" value in order to get a reference to the target class. The "attributes" are then
92
92
  passed to your #existence method as described above. If you specify an "ordinal" key, it must be
93
- numeric, and both Package#apply_all and Package#apply_missing will apply items after sorting by
94
- #ordinal, putting nil ordinals last.
93
+ numeric, and both Package#apply_all and Package#apply_missing will apply items after sorting by #ordinal,
94
+ putting nil ordinals last.
95
95
 
96
96
  You can add other keys that you might find useful for selecting and presenting items, for example, a
97
97
  "locale" key to show only items in the current user's locale.
@@ -102,10 +102,10 @@ what to do, perhaps in conjunction with a :before_save or :after_save handler.
102
102
  Example item file:
103
103
 
104
104
  ---
105
- id: example-widget
106
- description: "This is a kind of widget that's good for widgeting"
107
- locale: en
108
- type: PublicWidget
105
+ id: example-widget
106
+ description: "This is a kind of widget that's good for widgeting"
107
+ locale: en
108
+ type: Widgets::PublicWidget
109
109
  attributes:
110
110
  name: good-widget
111
111
  lang: en
@@ -1,3 +1,3 @@
1
1
  module Protopack
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ["conan@conandalton.net"]
11
11
  gem.description = %q{Create objects from object definitions stored as files}
12
12
  gem.summary = %q{Store packages of object prototypes on-disk as YML; this gem allows you scan each package for missing items and apply them to your repository.}
13
- gem.homepage = ""
13
+ gem.homepage = "https://github.com/conanite/protopack"
14
14
 
15
15
  gem.add_dependency 'hashie'
16
16
  gem.add_development_dependency 'rspec', '~> 2.9'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protopack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -73,7 +73,7 @@ files:
73
73
  - spec/protopack/packages/standard-widgets/red-widget-item.yml
74
74
  - spec/protopack/packages/standard-widgets/yellow-widget-item.yml
75
75
  - spec/spec_helper.rb
76
- homepage: ''
76
+ homepage: https://github.com/conanite/protopack
77
77
  licenses: []
78
78
  post_install_message:
79
79
  rdoc_options: []