hexlet 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hexlet.gemspec +0 -1
- data/lib/hexlet.rb +7 -5
- data/lib/hexlet/version.rb +1 -1
- data/test/hexlet/teacher_cli_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83667856922d7be718c50a433c1030b80ff01e79
|
4
|
+
data.tar.gz: 07f72445f54353ae7c2008ba58afa021d7f00b62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed2365506f02afce46085b90d5e2fba665c0a39ecfec0cf5eaa2d46dd8052b30042debd22d2861b7d9d6909ea3b3ce007ac0884c49ebf791424c0268b4f1d648
|
7
|
+
data.tar.gz: 3946bb29c3b6841ec063b7edc3518645cd74d7e8c85594464ebee4c3e8eeb53c64e8d26e5ea8561d24c855083bf764822a7669f9994557f10d8cba091d4f708e
|
data/hexlet.gemspec
CHANGED
data/lib/hexlet.rb
CHANGED
@@ -17,10 +17,6 @@ I18n.available_locales = [:en]
|
|
17
17
|
I18n.enforce_available_locales = true
|
18
18
|
I18n.locale = :en
|
19
19
|
|
20
|
-
I18n.load_path = Dir['locales/*.yml']
|
21
|
-
I18n.backend.load_translations
|
22
|
-
I18n.t "key" # FIXME this is hack
|
23
|
-
|
24
20
|
module Hexlet
|
25
21
|
autoload "Router", "hexlet/router"
|
26
22
|
|
@@ -32,5 +28,11 @@ module Hexlet
|
|
32
28
|
autoload "MemberCLI", "hexlet/member_cli"
|
33
29
|
autoload "TeacherCLI", "hexlet/teacher_cli"
|
34
30
|
|
35
|
-
|
31
|
+
def self.root
|
32
|
+
File.expand_path '../..', __FILE__
|
33
|
+
end
|
36
34
|
end
|
35
|
+
|
36
|
+
I18n.load_path = Dir[File.join(Hexlet.root, 'locales', '*.yml')]
|
37
|
+
I18n.backend.load_translations
|
38
|
+
I18n.t "key" # FIXME this is hack
|
data/lib/hexlet/version.rb
CHANGED
@@ -17,7 +17,7 @@ class Hexlet::TeacherCLITest < MiniTest::Test
|
|
17
17
|
to_return(:status => 201)
|
18
18
|
|
19
19
|
FakeFS do
|
20
|
-
folder = "
|
20
|
+
folder = "super_lesson"
|
21
21
|
FileUtils.mkdir(folder)
|
22
22
|
result = Hexlet::TeacherCLI.start ["submit", folder, "--verbose"]
|
23
23
|
assert { result }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hexlet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirill Mokevnin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|