giocopro 0.0.8 → 0.0.9
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,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 05dd157d958de8764e4c2fdde72ad29cef6339c8
|
4
|
+
data.tar.gz: ec5f4290c726518429b2580fc7685f9794c94021
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 32c6c1f35170487c11a83bf51cdd8cf4f86f059d8483e153b6e41cb659b82ef0682c6db0ddc63027632321831e21d3d511b4805e16801bf7073795a979a2438a
|
7
|
+
data.tar.gz: 6d156049c06c809b15cf877d35cf17e26c321ba59dbe5b44c336a2090a4ebdaa94a8931d2baa8195b6b64bf1877ecf3b7c5f76193c07a204da0b78aa8c9cdf8c
|
@@ -7,12 +7,9 @@ module GeneratorInstructions
|
|
7
7
|
|
8
8
|
Gioco Pro successfully installed.
|
9
9
|
|
10
|
-
|
11
|
-
2. You will find your token on http://app.gioco.pro/ on Manage > Application Token
|
12
|
-
|
10
|
+
-------------------------------------------------------
|
13
11
|
For usage and more infomation go to the documentation:
|
14
12
|
https://github.com/giocoapp/giocopro
|
15
|
-
|
16
13
|
=======================================================
|
17
14
|
|
18
15
|
EOS
|
@@ -2,5 +2,6 @@ module ModelGenerator
|
|
2
2
|
def adding_methods
|
3
3
|
inject_into_class "app/models/#{@model_name}.rb", @model_name.capitalize, "include GiocoResource\n"
|
4
4
|
copy_file find_in_source_paths("config.rb"), "config/initializers/giocopro.rb"
|
5
|
+
append_to_file 'config/initializers/giocopro.rb', "ENV['GIOCOPRO_TOKEN'] = '#{@secret_key}'" if @secret_key
|
5
6
|
end
|
6
7
|
end
|
@@ -8,11 +8,12 @@ module Giocopro
|
|
8
8
|
include GeneratorInstructions
|
9
9
|
|
10
10
|
source_root File.expand_path("../../templates", __FILE__)
|
11
|
-
|
11
|
+
class_option :secret, :type => :string, :desc => 'Your Gioco secret key, you can find it on Manage > Application Token at http://app.gioco.pro.'
|
12
12
|
desc "Setup Gioco for a unique resource"
|
13
13
|
|
14
14
|
def execute
|
15
|
-
@
|
15
|
+
@secret_key = options['secret']
|
16
|
+
@model_name = ask("What is your user model name? (eg. user)")
|
16
17
|
adding_methods
|
17
18
|
instructions
|
18
19
|
end
|
metadata
CHANGED
@@ -1,73 +1,52 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: giocopro
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 8
|
10
|
-
version: 0.0.8
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.9
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Gioco Pro
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2014-09-29 00:00:00 +02:00
|
19
|
-
default_executable:
|
11
|
+
date: 2015-01-03 00:00:00.000000000 Z
|
20
12
|
dependencies: []
|
21
|
-
|
22
|
-
|
13
|
+
description: Gioco Pro gem is the SDK of Gioco Pro service a easy way to implement
|
14
|
+
gamification based on plug and play concept. Doesn't matter if you already have
|
15
|
+
a full and functional database, Gioco will smoothly integrate everything and provide
|
16
|
+
all methods and analytics that you might need.
|
23
17
|
email: admin@gioco.pro
|
24
18
|
executables: []
|
25
|
-
|
26
19
|
extensions: []
|
27
|
-
|
28
20
|
extra_rdoc_files: []
|
29
|
-
|
30
|
-
|
31
|
-
- lib/giocopro.rb
|
21
|
+
files:
|
22
|
+
- init.rb
|
32
23
|
- lib/generators/giocopro/generator_instructions.rb
|
33
24
|
- lib/generators/giocopro/model_generator.rb
|
34
25
|
- lib/generators/giocopro/setup_generator.rb
|
35
26
|
- lib/generators/templates/config.rb
|
27
|
+
- lib/giocopro.rb
|
36
28
|
- lib/giocopro/gioco_resource.rb
|
37
|
-
- init.rb
|
38
|
-
has_rdoc: true
|
39
29
|
homepage: http://gioco.pro/
|
40
30
|
licenses: []
|
41
|
-
|
31
|
+
metadata: {}
|
42
32
|
post_install_message:
|
43
33
|
rdoc_options: []
|
44
|
-
|
45
|
-
require_paths:
|
34
|
+
require_paths:
|
46
35
|
- lib
|
47
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
-
|
49
|
-
requirements:
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
50
38
|
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
version: "0"
|
56
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
59
43
|
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
segments:
|
63
|
-
- 0
|
64
|
-
version: "0"
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
65
46
|
requirements: []
|
66
|
-
|
67
47
|
rubyforge_project:
|
68
|
-
rubygems_version:
|
48
|
+
rubygems_version: 2.2.2
|
69
49
|
signing_key:
|
70
|
-
specification_version:
|
50
|
+
specification_version: 4
|
71
51
|
summary: The Gioco Pro gem for Ruby on Rails applications.
|
72
52
|
test_files: []
|
73
|
-
|