exvo_notifications 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,9 +9,9 @@ module ExvoNotifications
9
9
  user = User.find_or_create_by_uid(params[:user_uid])
10
10
  user.plan = params[:edition_title]
11
11
  if user.save
12
- render :json => "Successfully created", :status => 201
12
+ render :json => { :message => "Successfully created" }, :status => 201
13
13
  else
14
- render :json => user.errors, :status => :unprocessable_entity
14
+ render :json => { :errors => user.errors }, :status => :unprocessable_entity
15
15
  end
16
16
  end
17
17
 
@@ -19,9 +19,9 @@ module ExvoNotifications
19
19
  user = User.find_or_create_by_uid(params[:user_uid])
20
20
  user.plan = nil
21
21
  if user.save
22
- render :json => "Successfully removed", :status => 200
22
+ render :json => { :message => "Successfully created" }, :status => 200
23
23
  else
24
- render :json => user.errors, :status => :unprocessable_entity
24
+ render :json => { :errors => user.errors }, :status => :unprocessable_entity
25
25
  end
26
26
  end
27
27
 
@@ -1,3 +1,3 @@
1
1
  module ExvoNotifications
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,49 +1,34 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: exvo_notifications
3
- version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 3
9
- - 2
10
- version: 0.3.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.3
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
13
- - "Robert S\xC4\x99k"
7
+ authors:
8
+ - Robert Sęk
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-09-23 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-03-13 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: bundler
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2157202900 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 23
30
- segments:
31
- - 1
32
- - 0
33
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
34
21
  version: 1.0.0
35
22
  type: :development
36
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *2157202900
37
25
  description: Maintain Exvo Notifications in external apps
38
- email:
26
+ email:
39
27
  - sekupyna@gmail.com
40
28
  executables: []
41
-
42
29
  extensions: []
43
-
44
30
  extra_rdoc_files: []
45
-
46
- files:
31
+ files:
47
32
  - .gitignore
48
33
  - Gemfile
49
34
  - Gemfile.lock
@@ -60,41 +45,29 @@ files:
60
45
  - lib/generators/exvo_notifications/exvo_notifications_generator.rb
61
46
  - lib/generators/exvo_notifications/templates/migration.rb
62
47
  - lib/generators/exvo_notifications/templates/not_working.html
63
- has_rdoc: true
64
48
  homepage:
65
49
  licenses: []
66
-
67
50
  post_install_message:
68
51
  rdoc_options: []
69
-
70
- require_paths:
52
+ require_paths:
71
53
  - lib
72
- required_ruby_version: !ruby/object:Gem::Requirement
54
+ required_ruby_version: !ruby/object:Gem::Requirement
73
55
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
- version: "0"
81
- required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
61
  none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- hash: 23
87
- segments:
88
- - 1
89
- - 3
90
- - 6
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
91
65
  version: 1.3.6
92
66
  requirements: []
93
-
94
67
  rubyforge_project: exvo_notifications
95
- rubygems_version: 1.3.7
68
+ rubygems_version: 1.8.11
96
69
  signing_key:
97
70
  specification_version: 3
98
71
  summary: Maintain Exvo Notifications
99
72
  test_files: []
100
-
73
+ has_rdoc: