notee 1.1.2 → 1.1.2.1

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: 909429fe0b8006227d3ff4e2b29923ca104b12e2
4
- data.tar.gz: 4ca24b0377728a964b545d25dd264075aede0cdd
3
+ metadata.gz: a8e9563e61fc8f135daf44f6df2cff7a7c7d3201
4
+ data.tar.gz: dd6763a61b1085ac9d80fe1485b1b6af602133f6
5
5
  SHA512:
6
- metadata.gz: 04b80db924026adb3bd28371eff6efcccfb422f6d643ae98d779098d4261e33dc9e4bb290e85e1ed3a600d4086099610f67956634f0059cc4815ab95e44e9408
7
- data.tar.gz: 89860725995c743f37e59a710c5b267afef9623655e242b7ee4d8c8774ff56f8fe4df8bdd4a0e50d71e846bf08fa281b7a3c73a951a3db5f807a6d678285c99a
6
+ metadata.gz: 6ebe036ea1e74a2169b1be1ea329226009955e495f91c2f9088140461e856dc81af9194d8cbcbeff9bbbef5430352bcdb532fd9f30dc3a9c9ce9c6653467c8fb
7
+ data.tar.gz: 11e7265ba3f1ac62560fca7a53b1dff39a4c4c413648eacf7095d31b2e1636d5b0edd6f88745e5b096f59b6585c489cb1968fd62d237d70c1341d334f8feb50e
@@ -13,7 +13,7 @@ module Notee
13
13
  end
14
14
 
15
15
  def create
16
- check_recaptcha
16
+ check_recaptcha if Rails.env.production?
17
17
  User.sign_in(params[:id], params[:password])
18
18
  redirect_to root_path
19
19
  end
@@ -6,11 +6,13 @@
6
6
  <p>Notee is creating blog gem by only one command</p>
7
7
  <%= form_tag(tokens_path, :class => 'mt_50', :id => 'syncer-recaptcha-form') do %>
8
8
  <h3>ID:</h3>
9
- <%= text_field_tag :id, "", :disabled => true %>
9
+ <%= text_field_tag :id, "", :disabled => Rails.env.production? %>
10
10
  <h3>PASSWORD:</h3>
11
- <%= password_field_tag :password, "", :disabled => true %>
12
- <div data-callback="syncerRecaptchaCallback" class="g-recaptcha mt_30" data-sitekey="<%= Notee.recaptcha_key %>"></div>
13
- <%= submit_tag "ログイン", :disabled => true, :class => 'full grid mt_50' %>
11
+ <%= password_field_tag :password, "", :disabled => Rails.env.production? %>
12
+ <% if Rails.env.production? %>
13
+ <div data-callback="syncerRecaptchaCallback" class="g-recaptcha mt_30" data-sitekey="<%= Notee.recaptcha_key %>"></div>
14
+ <% end %>
15
+ <%= submit_tag "ログイン", :disabled => Rails.env.production?, :class => 'full grid mt_50' %>
14
16
  <% end %>
15
17
  </div>
16
18
  </div>
@@ -104,7 +104,7 @@ module Notee
104
104
 
105
105
  notee_writers = []
106
106
  posts.each do |post|
107
- notee_writers.push(post.user)
107
+ notee_writers.push(post.user) unless notee_writers.include?(post.user)
108
108
  end
109
109
 
110
110
  notee_writers
@@ -1,3 +1,3 @@
1
1
  module Notee
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - funaota
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-14 00:00:00.000000000 Z
11
+ date: 2016-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails