power-types 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f159dd5e4a3a526a40fec330c362de8a529eb047
4
- data.tar.gz: 970394597addd67d70142b5dd64a98a96a5098ce
3
+ metadata.gz: 02ddf6cbe39cd78e379667b219b8a40e377c2e69
4
+ data.tar.gz: 8bf8aeb3f6272b77e047d419edfb562df5947ee4
5
5
  SHA512:
6
- metadata.gz: 34896843282a2ac5eaf399c199825f1f221f42525521d7ce95a49ee7bc698d666c147de92128391e9c09b28076e6e7a051b3eb36b2820d050b3558ed5ef21f65
7
- data.tar.gz: 00959cdba7efdabbedf520cdb031122c8a17e9814ee9ce18f327d92aced0b1956b0842284b378eb83427db7efc1dd1727b36617ac4697577cae661bb03db0508
6
+ metadata.gz: 06fbe1cbfd89bfce6567848e75d876ef6c4d8cc84d06a880c62ac744d9376e8e39a5f7b3e90c5ff0500d8eea207e911c3bdeb1dc0eee7865f995501c79f5d4bd
7
+ data.tar.gz: 33cdc3fbae9965bf4fb1c6ee4f0b07998c921ff393d7fae11ebf9c1f051d86d02222e2181d60c8b25c64efffd70b860efc39d5ec831b16c58a4191f6f6a45d12
data/README.md CHANGED
@@ -25,6 +25,7 @@ This will create the MagicMakingService class, inheriting from a base service cl
25
25
 
26
26
  class MagicMakingService < PowerTypes::Service.new(:foo, bar: nil)
27
27
 
28
+ The arguments get available to be used in the service class as instance variables: `@foo` and `@bar`
28
29
  Default values for arguments are optional, and can't be defined in the generator, but manually after. In this case a `nil` value was given for `bar`.
29
30
  This is a way to make the argument optional. If no default value is assigned, the argument will be required, and an error raised if missing.
30
31
 
@@ -95,4 +96,4 @@ Power-Types is maintained by [platanus](http://platan.us).
95
96
 
96
97
  ## License
97
98
 
98
- Power-Types is © 2016 Platanus, S.p.A. It is free software and may be redistributed under the terms specified in the LICENSE file.
99
+ Power-Types is © 2016 Platanus, S.p.A. It is free software and may be redistributed under the terms specified in the LICENSE file.
@@ -7,7 +7,7 @@ module Rails
7
7
  desc "This generator creates a new command at app/commands"
8
8
  def create_command
9
9
  template('command.rb', "app/commands/#{file_name.underscore}.rb")
10
- template('command_spec.rb', "specs/commands/#{file_name.underscore}_spec.rb")
10
+ template('command_spec.rb', "spec/commands/#{file_name.underscore}_spec.rb")
11
11
  end
12
12
  end
13
13
  end
@@ -8,7 +8,7 @@ module Rails
8
8
  def create_service
9
9
  return puts "Service name must end with 'Service'" unless class_name.ends_with? "Service"
10
10
  template('service.rb', "app/services/#{file_name.underscore}.rb")
11
- template('service_spec.rb', "specs/services/#{file_name.underscore}_spec.rb")
11
+ template('service_spec.rb', "spec/services/#{file_name.underscore}_spec.rb")
12
12
  end
13
13
  end
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module PowerTypes
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power-types
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Baixas
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-08-26 00:00:00.000000000 Z
12
+ date: 2016-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler