algoliasearch-jekyll 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.travis.yml +11 -0
- data/Gemfile +4 -1
- data/README.md +8 -0
- data/Rakefile +2 -1
- data/VERSION +1 -1
- data/algoliasearch-jekyll.gemspec +129 -0
- data/lib/algoliasearch-jekyll.rb +13 -1
- data/lib/credential_checker.rb +74 -0
- data/lib/push.rb +52 -89
- data/lib/record_extractor.rb +1 -0
- data/scripts/check_flay +30 -0
- data/scripts/check_flog +31 -0
- data/scripts/git_hooks/pre-commit +2 -1
- data/scripts/git_hooks/pre-push +6 -1
- data/spec/credential_checker_spec.rb +116 -0
- data/spec/fixtures/_config.yml +9 -4
- data/spec/fixtures/_layouts/default.html +6 -0
- data/spec/fixtures/_posts/2015-07-03-test-post-again.md +7 -0
- data/spec/fixtures/_site/2015/07/02/test-post.html +26 -0
- data/spec/fixtures/_site/2015/07/03/test-post-again.html +3 -0
- data/spec/fixtures/_site/about.html +31 -0
- data/spec/fixtures/_site/assets/ring.png +0 -0
- data/spec/fixtures/_site/authors.html +1 -0
- data/spec/fixtures/_site/excluded.html +1 -0
- data/spec/fixtures/_site/hierarchy.html +31 -0
- data/spec/fixtures/_site/index.html +17 -0
- data/spec/fixtures/_site/my-collection/collection-item.html +2 -0
- data/spec/fixtures/_site/page2/index.html +40 -0
- data/spec/fixtures/_site/weight.html +15 -0
- data/spec/fixtures/index.html +13 -0
- data/spec/push_spec.rb +134 -113
- data/spec/record_extractor_spec.rb +10 -0
- data/spec/spec_helper.rb +21 -11
- data/spec/spec_helper_simplecov.rb +1 -1
- data/txt/api_key_missing +4 -0
- data/txt/application_id_missing +8 -0
- data/txt/index_name_missing +9 -0
- metadata +69 -5
- data/scripts/run_tests +0 -2
- data/scripts/update_gem +0 -10
data/scripts/run_tests
DELETED
data/scripts/update_gem
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
build_output = `gem build algoliasearch-jekyll.gemspec`.split("\n")
|
4
|
-
puts build_output
|
5
|
-
build_output.select! { |line| line.match(/^ File:/) }
|
6
|
-
|
7
|
-
gem_file = build_output[0].gsub(' File: ', '')
|
8
|
-
puts 'Pushing to rubygems'
|
9
|
-
push_output = `gem push #{gem_file}`
|
10
|
-
puts push_output
|