renote_dac 0.0.141 → 0.0.142

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
  SHA256:
3
- metadata.gz: f8bfddf644c2620e48dfb1acb03964bb66ca0079e01bec21099fce49551abb7f
4
- data.tar.gz: 4d5f6ad2485f3ba32e82790eb251f54a5aea38d7c16ca7426070223045dac2ac
3
+ metadata.gz: 981269e60ffba8e44e6695ea9c432ae5725b3c16b59fc15c785952466dfe7e12
4
+ data.tar.gz: c323314a2a2b057dddb995793393ba8b2580ea46c2567e1fd0a15736e0ea2dbf
5
5
  SHA512:
6
- metadata.gz: 12abdcd6a5a2bb6199af92248db89bd7f0a3f3fe6b3f2071da5f6d3b096f1fe6394278fd7d3f2d812b79d05f09acf372bdd6c8602374113d9596cb0c2a5ca241
7
- data.tar.gz: 9b067662d73fd6f824fa50b221613a694997aef5c35d43c5cba67c821abf6977897d526fcfed2207fda74742d662c54e70bf0fd71de1c85891603b23e1ee7ab3
6
+ metadata.gz: a4c4ae841b2786035658fda1e02ee9b59a866867cb79f9571c04c26e0b19099cf569ff4037478c7dc60c2e7f92a547e160ea56108a0b0987820cbb260c88b129
7
+ data.tar.gz: 951fc4946e8a814887a5e9f3657e865059c81324f6abcd18b9edbcce2d8bc8be868b330f0e3456e94c5e29b4ab82aba77071362ddffbe8ca538331c4ab854eeb
@@ -1,13 +1,4 @@
1
1
  module RenoteDac
2
2
  class ApiController < ApplicationController
3
- before_action :authenticate
4
-
5
- def authenticate
6
- raise ActiveRecord::RecordNotFound unless authenticated?
7
- end
8
-
9
- def authenticated?
10
- false
11
- end
12
3
  end
13
4
  end
@@ -1,4 +1,13 @@
1
1
  module RenoteDac
2
2
  class ApplicationController < ActionController::API
3
+ before_action :authenticate
4
+
5
+ def authenticate
6
+ raise ActiveRecord::RecordNotFound unless authenticated?
7
+ end
8
+
9
+ def authenticated?
10
+ false
11
+ end
3
12
  end
4
13
  end
@@ -15,7 +15,7 @@ module RenoteDac
15
15
  end
16
16
 
17
17
  desc "This generator creates a Gemfile at rails root"
18
- def create_routes_file
18
+ def create_gemfile_file
19
19
  FileUtils.remove_file(Rails.root.join('Gemfile').to_s)
20
20
  template "gemfile.rb", "Gemfile"
21
21
  end
@@ -40,33 +40,4 @@ production:
40
40
  end
41
41
  end
42
42
  end
43
- end
44
-
45
-
46
-
47
- class MyClass
48
-
49
- def initialize
50
- @first_property = nil
51
- end
52
-
53
- def im_a_public_method
54
- puts 'Im public'
55
- im_a_private_method
56
- my_private_attribute
57
- end
58
-
59
- def first_property
60
- self[:first_property]
61
- end
62
-
63
- def first_property=(val)
64
- write_attribute :first_property, val
65
- end
66
-
67
- private
68
-
69
- def im_a_private_method
70
- puts 'im private'
71
- end
72
43
  end
@@ -1,3 +1,3 @@
1
1
  module RenoteDac
2
- VERSION = '0.0.141'
2
+ VERSION = '0.0.142'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renote_dac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.141
4
+ version: 0.0.142
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sidney Leatherwood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-29 00:00:00.000000000 Z
11
+ date: 2018-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails