jekyll-auth 0.1.0 → 0.1.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: 6c299567fea0a69142dfdfe7bd5965efaf64a078
4
- data.tar.gz: b0b41a85e08eaa51fda54a304806e0f844a1b6d8
3
+ metadata.gz: 8d4e8bc864cb8bedec79218e3c58e20bb5b568ab
4
+ data.tar.gz: 75d55969a1e80848f815a35015fecbd9f1c2e692
5
5
  SHA512:
6
- metadata.gz: d884e76b631a3accbe9598cf0fc9e64e718c2b3f78fdfbfb8d835072eef123f2da9418339ea850043896e21a8d222c5f248d81ad5af91bcf223ebdad2205c264
7
- data.tar.gz: 32524e318098c5401b3ab0af370adc5628c703205f63389491a2cfe01ad6f1444bfac0f128f7bd438275b1dbecc18cde8b745250ac36d5233c885d6e709c5c9b
6
+ metadata.gz: 8f0b2e3942858c42cd26246b7318b701a36dea11f6e50a4bfc1bfe8cd2ba77b35bfb2a8cc5e6d788596ec68521f72586b845b7b98adbd1e89968fd06dfa42f2d
7
+ data.tar.gz: a52c765a092f29e208bcff4f31fc572c67654a631c76821a0cd44fc5b9a57f710bf51642dc229ce3d0253670fc4feb2f5b86ff9413c5de22dbd92e0a36fafbe8
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ _site
2
+ *.gem
3
+ .env
data/Rakefile CHANGED
@@ -4,6 +4,6 @@
4
4
 
5
5
  namespace :assets do
6
6
  task :precompile do
7
- sh "bundle exec jekyll build"
7
+ sh "bundle exec jekyll-auth build"
8
8
  end
9
9
  end
data/bin/jekyll-auth CHANGED
@@ -23,7 +23,7 @@ command :new do |c|
23
23
  destination = Dir.pwd
24
24
  say "Initaiting new Jekyll Auth site in #{destination}"
25
25
 
26
- ["Rakefile", "config.ru"].each do |file|
26
+ ["Rakefile", "config.ru", ".gitignore"].each do |file|
27
27
  if File.exist? "#{destination}/#{file}"
28
28
  say "* #{destination}/#{file} already exists... skipping."
29
29
  else
@@ -122,12 +122,15 @@ command :serve do |c|
122
122
  end
123
123
  end
124
124
 
125
+ # Run the standard jekyll build command
126
+ # Called by Rake task, to allow the gem
127
+ # to add functionality here in the future
125
128
  command :build do |c|
126
129
  c.syntax = 'jekyll-auth build'
127
130
  c.description = "Build Jekyll site"
128
131
  c.action do |args, options|
129
132
  say "building the site..."
130
- sh "bundle exec rake assets:precompile"
133
+ sh "bundle exec jekyll build"
131
134
  say "site built."
132
135
  end
133
136
  end
data/lib/jekyll-auth.rb CHANGED
@@ -2,9 +2,11 @@ require 'rubygems'
2
2
  require 'sinatra-index'
3
3
  require 'sinatra_auth_github'
4
4
  require 'rack'
5
+ require 'dotenv'
5
6
  require File.dirname(__FILE__) + '/jekyll-auth/version'
6
7
  require File.dirname(__FILE__) + '/jekyll-auth/auth-site'
7
8
  require File.dirname(__FILE__) + '/jekyll-auth/jekyll-site'
9
+ Dotenv.load
8
10
 
9
11
  class JekyllAuth
10
12
  def self.site
@@ -1,3 +1,3 @@
1
1
  class JekyllAuth
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-22 00:00:00.000000000 Z
11
+ date: 2013-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-pages
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: dotenv
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rake
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -123,6 +137,7 @@ files:
123
137
  - lib/jekyll-auth/auth-site.rb
124
138
  - lib/jekyll-auth/jekyll-site.rb
125
139
  - lib/jekyll-auth/version.rb
140
+ - .gitignore
126
141
  homepage: https://github.com/benbalter/jekyll-auth
127
142
  licenses:
128
143
  - MIT