jalik 1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 952e4e1636de7b158719a87e7f1fc168b2afb7ca
4
+ data.tar.gz: 27f088b048ea94495609bdacd94f57385765e49a
5
+ SHA512:
6
+ metadata.gz: 340841bde5053296a25e05c229fae8c2e7b65a26e65fcb624839d19dcb702ed38229f7c3f94b37ed5fa22e213ac816131eb62d5b995a6039574a34c45fb415f3
7
+ data.tar.gz: 0a4962deaec2ebde522d2e7bbd745ac668f826091f7bb0c1242fba22f890e74651c5432ce140b5c335cf1db1e69d60e2e19a4b032778f33320fe322a49d73704
checksums.yaml.gz.sig ADDED
@@ -0,0 +1,3 @@
1
+ �E��?�qE �Z��$lg�չ�tu'bG.�i��y� �
2
+ �J᝜(�J$���"���lp�5���,ΩI���: ��Q䠈�m��+
3
+ ���}6���)���>���+1���:��\�
data/README.md ADDED
@@ -0,0 +1,10 @@
1
+ # jalik
2
+
3
+ Last Stable Gem
4
+ [![Gem Version](https://badge.fury.io/rb/jalik.svg)](http://badge.fury.io/rb/jalik)
5
+
6
+ # Wtf ?
7
+
8
+ On day, I discover a "onclik jalik" btn on the web. It was ugly and bad. I wrote this gem to parse it.
9
+ It is pointless but I liked it.
10
+
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << 'test'
5
+ end
6
+
7
+ desc "Run tests"
8
+ task :default => :test
data/jalik.gemspec ADDED
@@ -0,0 +1,25 @@
1
+ require_relative "lib/gem-version"
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'jalik'
5
+ s.version = Jalik::VERSION
6
+ s.date = Time.now.getgm.to_s.split.first
7
+ s.summary = "See Changelog"
8
+ s.description = "Jalik parser"
9
+ s.authors = [
10
+ "poulet_a"
11
+ ]
12
+ s.email = "poulet_a@epitech.eu",
13
+ s.files = [
14
+ "lib/jalik.rb",
15
+ "lib/gem-version.rb",
16
+ "lib/jalik/parser.rb",
17
+ "README.md",
18
+ "Rakefile",
19
+ "jalik.gemspec",
20
+ ]
21
+ s.homepage = "https://github.com/poulet_a/jalik"
22
+ s.license = "GNU/GPLv3"
23
+ s.cert_chain = ['certs/poulet_a.pem']
24
+ s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/
25
+ end
@@ -0,0 +1,5 @@
1
+ module Jalik
2
+
3
+ VERSION = '1.0'
4
+
5
+ end
@@ -0,0 +1,11 @@
1
+ #encoding: utf-8
2
+
3
+ module Jalik
4
+
5
+ # @param jalik_value [String] a jalik link like "jalik('details[!]ancien[*]presbytere[*][#][;]');"
6
+ # @return [String]
7
+ def self.parse(jalik_value)
8
+ return jalik_value.to_s.gsub("jalik('", "").gsub("');", "").gsub("[*]", "+").gsub("[#]", ".").gsub("[!]", "-").gsub("[;]", "html")
9
+ end
10
+
11
+ end
data/lib/jalik.rb ADDED
@@ -0,0 +1,7 @@
1
+ #encoding: utf-8
2
+
3
+ # Version
4
+ require_relative 'gem-version.rb'
5
+
6
+ require_relative 'jalik/parser.rb'
7
+
data.tar.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+ B���߾i���қ�� ���+{=���� ���6X#���A�
2
+ ����טaO���4 �nt�m}��d�d$ ���K"��B!jJ|�'��[���2J{ RH���pb����c������e�����P�R3�Y�6�H�
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jalik
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.0'
5
+ platform: ruby
6
+ authors:
7
+ - poulet_a
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRYwFAYDVQQDDA1hcnRo
14
+ dXIucG91bGV0MRkwFwYKCZImiZPyLGQBGRYJY3J5cHRvbGFiMRMwEQYK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22OQdbLMvLxHzmQs2llPzxG5zCFjdk3ipYr59JDvi6yK0MFb
31
+ +lG6tRo8QaFrH3afOmy4VUaG84Jm1XjNYnyaOfLb9ItpcQgVySn2c3aJ2PLcPljM
32
+ EhZUryAiV8KNMQ==
33
+ -----END CERTIFICATE-----
34
+ date: 2014-10-28 00:00:00.000000000 Z
35
+ dependencies: []
36
+ description: Jalik parser
37
+ email:
38
+ - poulet_a@epitech.eu
39
+ - - lib/jalik.rb
40
+ - lib/gem-version.rb
41
+ - lib/jalik/parser.rb
42
+ - README.md
43
+ - Rakefile
44
+ - jalik.gemspec
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - README.md
50
+ - Rakefile
51
+ - jalik.gemspec
52
+ - lib/gem-version.rb
53
+ - lib/jalik.rb
54
+ - lib/jalik/parser.rb
55
+ homepage: https://github.com/poulet_a/jalik
56
+ licenses:
57
+ - GNU/GPLv3
58
+ metadata: {}
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubyforge_project:
75
+ rubygems_version: 2.4.2
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: See Changelog
79
+ test_files: []
80
+ has_rdoc:
metadata.gz.sig ADDED
Binary file